Forum Moderators: coopster

Message Too Old, No Replies

changing /view.php?q=page.htm to /view/page.htm

         

samdawg

5:31 pm on Jan 3, 2004 (gmt 0)

10+ Year Member



Hi,

I'm trying to figure out how to change the display of the URL from /view.php?q=page.htm to a simple /view/page.htm where /view/ is still a PHP script. Can anybody help me or guide me where I can get information on this. Thanks in advance.

Sam

ergophobe

7:32 pm on Jan 3, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Do a google search on

php search engine friendly urls

In point of fact, both URLs are equeally search-engine friendly these days, but it didn't used to be that way, so the name stuck. They should be called

informative urls

or something, but won't be anytime soon.

Anyway, you'll find good articles at evolt and alistapart as well as several threads here at WebmasterWorld

Tom

runboard

12:40 am on Jan 5, 2004 (gmt 0)

10+ Year Member



Use the Rewrite module of Apache (if that's what you are using)

RewriteRule ^\/view\/(.*)$ /view.php?$1 [P]

Hope it helps.

Taran

12:14 pm on Jan 7, 2004 (gmt 0)

10+ Year Member Top Contributors Of The Month



runboard can you please explain it more clearly.