Forum Moderators: phranque
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
RewriteRule ^([A-Za-z0-9_-]+)/?$ index.php?page=$1 [NC]
RewriteRule ^([a-zA-Z0-9_-]+)/?$ specials.php?page=$1 [NC,L]
RewriteRule ^(.+)$ /$1.php [L]
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.+)$ /$1.php [L]
RewriteRule ^([a-zA-Z0-9_-]+)/?$ specials.php?page=$1 [L]
RewriteRule ^([A-Za-z0-9_-]+)/?$ index.php?page=$1 [L]
RewriteRule ^([a-z0-9_\-]+)/?$ specials.php?page=$1 [NC,L]
RewriteRule ^([a-z0-9_\-]+)/?$ index.php?page=$1 [NC,L]
#
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.+)$ /$1.php [L]
RewriteRule ^specials-([a-z0-9_\-]+)[b]/?[/b]$ specials.php?page=$1 [NC,L] RewriteRule ^specials-([a-z0-9_\-]+[b])$[/b] [b]/[/b]specials.php?page=$1 [NC,L] specials.php?page= in it are redirected to your new URL format. You'll need one redirect for each such form. The redirect should also force or remove the www at the same time within the same redirect for those requests.