RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^example.com [NC] RewriteRule ^(.*)$ http://www.example.com$1 [L,R=301] RedirectMatch 301 ^/subfolder/(.*)$ http://subdomain.example.com/$1
- 21 utilizatori au considerat informația utilă
RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^example.com [NC] RewriteRule ^(.*)$ http://www.example.com$1 [L,R=301] RedirectMatch 301 ^/subfolder/(.*)$ http://subdomain.example.com/$1