PDA

View Full Version : Mod Rewrite



Masetek
10-06-2005, 09:42 PM
Hey does anyone know, or can point me in the right direction for the mod rewrite syntax for changing blah.com/signup.html to blah.com?page=signup (or vice versa, I don't know much about mod rewrite)

I'm sure it's pretty simple, because all it needs to do is find the word signup in signup.html and add it to ?page=. All the resources I've been looking at are way to complicated to do this, they're meant to be used on larger sites/blogs etc

All my pages will have the same names ie. blah.com/about.html will equal blah.com?page=about

Anyway, if anyone knows I'd appreciate it...need to get rid of the damn query strings!

Cheers :cool:

freekrai
10-07-2005, 07:26 AM
RewriteEngine on
RewriteRule ^(.*).html?$ index.php?page=$1 [QSA,L]

Masetek
10-07-2005, 06:02 PM
Works a charm! :)

Thanks very much freekrai, appreciate it!