Mod Rewrite

From LinuxReviews
Jump to navigationJump to search

Mod Rewrite allows you to rewrite the URLs.

help for oliver[edit | edit source]

23:53 < oliver> I just want foo.php to be foo/
23:54 < oliver> in a general sense, so a new bar.php turns into bar/ as well
23:54 < oliver> GET params stay unchanged
23:55 < oliver> I just want *.php? turn into */?
23:56 <@thrasher7> RewriteRule ^([^/\.]+)/?$ $1.php [L]

Lots of info[edit | edit source]