Reputation: 213
I would redirect the whole dir "https://sub.domain.ext/dir1" to another location on a different machine "https://sub1.domain.ext/dir1", I'm using in /.htaccess the following rule with no success: The page simply doesnt't redirect.
Rewriterule ^dir1/(.*) https://sub1.domain.ext/dir1/$1 [R=301,L]
# this is the whole ht access
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} ^Morfeus
RewriteRule ^.*$ - [F]
</IfModule>
# supress php errors
php_value display_errors off
# force https
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://sub.domain.ext/$1 [R,L]
any tips?
Scenario: ubuntu+apache
others htaccess rules worsk fine
thx
Upvotes: 0
Views: 26
Reputation: 213
Deleting the htaccess file in the dir1/, the problem was solved.
Upvotes: 0