- Code: Select all
Options +FollowSymLinks -MultiViews
RewriteRule ^work/?$ /v5/work/print/ [R=301,L]
RewriteEngine On
# Redirect to remove /index.php files.
RewriteCond %{THE_REQUEST} \ /(.+/)?index\.php(\?.*)?\ [NC]
RewriteRule ^(.+/)?index\.php$ /%1 [NC,R=301,L]
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule ^about\.php$ /v5/about/ [R=301,L]
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule ^blog\.php$ /blog/ [R=301,L]
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule ^contact\.php$ /contact/ [R=301,L]
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule ^work\.php$ /v5/work/print/ [R=301,L]
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule ^identity\.php$ /v5/work/identity/ [R=301,L]
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule ^web\.php$ /v5/work/web/ [R=301,L]
RewriteRule ^about/?$ /v5/about.php [QSA,L]
RewriteRule ^blog/?$ /blog.php [QSA,L]
RewriteRule ^contact/?$ /v5/contact.php [QSA,L]
RewriteRule ^work/print/?$ /v5/work.php [QSA,L]
RewriteRule ^work/identity/?$ /v5/identity.php [QSA,L]
RewriteRule ^work/web/?$ /v5/web.php [QSA,L]
Thanks!
Gus