Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Lionsanime Directory   1,000 Directory Submissions   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 07-07-2004, 12:02 AM   #1 (permalink)
Contributing Member
 
MrMean's Avatar
 
Join Date: 07-03-04
Location: Devon, England
Posts: 385
iTrader: 0 / 0%
MrMean is just really niceMrMean is just really niceMrMean is just really niceMrMean is just really niceMrMean is just really niceMrMean is just really niceMrMean is just really niceMrMean is just really niceMrMean is just really niceMrMean is just really niceMrMean is just really nice
Send a message via MSN to MrMean Send a message via Yahoo to MrMean Send a message via Skype™ to MrMean
php/.htaccess help

Hello - I know the title wasn't useful didn't know what to put it as, anyway.

I'm just about to start developing my new lyrics script, which is going to be Search Engine friendly.
So, instead of having ?page=blah&artist=blah etc I would like to have

domain.com/artist
domain.com/artist/the-song-name

I need to make this dynamic, is there a way it can be done with .htaccess?

Thanks in advance for anyhelp!
MrMean is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 07-07-2004, 02:19 AM   #2 (permalink)
Moderator
 
LazyJim's Avatar
 
Join Date: 10-13-03
Location: UK
Posts: 2,819
iTrader: 0 / 0%
Latest Blog:
None

LazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to all
Send a message via MSN to LazyJim
mod_rewrite should help, redirect all requests to your domain to a signle php script that reads the URL requested and does whatever you want with it.

An alternative if you're too lazy to figure out mod_rewrite like I was, set the ErrorDocument to your php script so any request resulting in file not found will redirect to the same php script that reads the url. This is a pretty sneaky solution but the main drawback is the server will try to find the requested document each time, a step that is bypassed if you use mod_rewrite instead.

I recommend downloading Apache and PHP and installing on your own machine to test them, it's a great time saver and usefull experience.
__________________

-LJ-

My advice is to look at each case individually, with an informed mind and an appropriately balanced and objective viewpoint.

Web Design and Development, Ipswich, UK.
My deviantArt
LazyJim is offline  
Add Post to del.icio.us
Reply With Quote
Old 07-07-2004, 08:28 PM   #3 (permalink)
Jim
Inactive
 
Jim's Avatar
 
Join Date: 07-05-04
Location: İstanbul
Posts: 362
iTrader: 0 / 0%
Latest Blog:
None

Jim is on the right pathJim is on the right path
ISAPI Rewrite might also be useful if you're working on Windows platform. It's the IIS version of mod_rewrite.
Jim is offline  
Add Post to del.icio.us
Reply With Quote
Old 07-08-2004, 12:42 AM   #4 (permalink)
Contributing Member
 
MrMean's Avatar
 
Join Date: 07-03-04
Location: Devon, England
Posts: 385
iTrader: 0 / 0%
MrMean is just really niceMrMean is just really niceMrMean is just really niceMrMean is just really niceMrMean is just really niceMrMean is just really niceMrMean is just really niceMrMean is just really niceMrMean is just really niceMrMean is just really niceMrMean is just really nice
Send a message via MSN to MrMean Send a message via Yahoo to MrMean Send a message via Skype™ to MrMean
thanks for your replies, but i've read up on mod rewrite now and its ideal for what im doing
MrMean is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
htaccess & SSL Sketch Coding Forum 3 08-28-2006 03:12 AM
.htaccess sim Coding Forum 5 01-24-2005 03:54 PM
What can you do with .htaccess? Jason Web Design Lobby 4 12-03-2004 11:39 PM
.htaccess help Limit Coding Forum 1 08-07-2004 10:34 AM
.htaccess Pimpen 2010 Coding Forum 15 10-21-2003 01:39 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 04:24 AM.
© Copyright 2008 V7 Inc