Forum Moderators: phranque
RewriteRule ^~mtnsoft2/(.*) http://www.example.com/$1 [R=301,L] RewriteRule ^~mtnsoft2/(([^/]+/)*)index\.(html?|php)$ http://www.example.com/$1 [R=301,L]
#
RewriteRule ^~mtnsoft2/(.*) http://www.example.com/$1 [R=301,L]
#
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.(html?|php)\ HTTP/
RewriteRule ^(([^/]+/)*)index\.(html?|php)$ http://www.example.com/$1 [R=301,L]
#
#RewriteCond %{HTTP_HOST} !^(www\.example\.com)?$
RewriteRule (.*) http://www.example.com/$1 [R=301,L]
RewriteEngine On
#
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /~mtnsoft2/([^/]+/)*index\.(html?|php)\ HTTP/
RewriteRule ^~mtnsoft2/(([^/]+/)*)index\.(html?|php)$ http://www.example.com/$1 [R=301,L]
#
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /~mtnsoft2/[^\ ]+\ HTTP/
RewriteRule ^~mtnsoft2/(.*) http://www.example.com/$1 [R=301,L]
#
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.(html?|php)\ HTTP/
RewriteRule ^(([^/]+/)*)index\.(html?|php)$ http://www.example.com/$1 [R=301,L]
#
#RewriteCond %{HTTP_HOST} !^(www\.example\.com)?$
RewriteRule (.*) http://www.example.com/$1 [R=301,L]