Forum Moderators: phranque
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} /apps/
RewriteRule ^(.*)$ http://sub.domain.com/apps/$1 [R=301,L]
http://sub.domain.com/apps/soft/apps/appname/pad.xml http://sub.domain.com/apps/appname/pad.xml
domain.com/soft/apps/[appname]/[filename.ext] sub.domain.com/apps/[appname]/[filename.ext] #RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} /soft/apps/
RewriteRule ^(.*)$ http://sub.domain.com/$1 [R=301,L] http://sub.domain.com/soft/apps/[appname]/[filename.ext] RedirectMatch 301 ^/soft/(.*)$ http://sub.domain.com/$1 RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} /soft/
RewriteRule ^(.*)$ http://sub.domain.com/$1 [R=301,L] RewriteEngine On
RewriteRule ^soft/(.*) http://sub.domain.com/$1 [R=301,L] also, what's wrong with using RedirectMatch?