PDA

View Full Version : Quick question


Guy G
04-16-2005, 12:50 PM
I wanna use mod_rewrite to replace every .php extension to whatever I want.
Will this work:

RewriteEngine on
Options +FollowSymLinks
RewriteRule ^$1.gynx $1.php [L]


Will it? help is appriciated..

Maybe this will work?

RewriteEngine on
Options +FollowSymLinks
RewriteRule ^(.*).gynx$ $1.php [L]

WhSox21
04-18-2005, 01:12 AM
You need to switch the order around. The first is for the search and the second is for the rule.

akanevsky
04-18-2005, 06:20 PM
RewriteEngine on
Options +FollowSymLinks
RewriteRule ^(.*)\.gynx$ $1.php [L]