Forum Moderators: phranque

Message Too Old, No Replies

hide GET vars with mod rewrite

         

formasfunction

7:12 am on Nov 23, 2007 (gmt 0)

10+ Year Member



When a user accesses the following link:
[mysite.com...]

I'd like for the URL to show simply
[mysite.com...]

but I need for the GET variable to still be passed to my PHP script. Is this possible?

jdMorgan

2:51 pm on Nov 23, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



No, the "friendly" URL must contain all of the information needed by your server to deliver the correct content. This information may not necessarily be in the same format, but it needs to be present. For example, you could use a URL of the form "example.com/foo" or "example.com/foo/index.php".

Also, mod_rewrite cannot "change" a URL -- Only the links on your pages determine the URL to be used by browsers and search engines.

See this thread [webmasterworld.com] for more information about changing URLs and using search-engine-friendly URLs.

Jim