redirect a directory and all sub-directories
2 posts
• Page 1 of 1
Re: redirect a directory and all sub-directories
Hello.
The following rule should be enough:
RewriteEngine On
RewriteRule ^blog http\://www.oehq.com [NC,R=301]
Please note this rule is designed to work in .htaccess file. If you are putting it into httpd.conf you need to use this one:
RewriteEngine On
RewriteRule ^/blog http\://www.oehq.com [NC,R=301]
If the redirect is not issued, try to follow troubleshooting section from documentation first.
The following rule should be enough:
RewriteEngine On
RewriteRule ^blog http\://www.oehq.com [NC,R=301]
Please note this rule is designed to work in .htaccess file. If you are putting it into httpd.conf you need to use this one:
RewriteEngine On
RewriteRule ^/blog http\://www.oehq.com [NC,R=301]
If the redirect is not issued, try to follow troubleshooting section from documentation first.
Re: redirect a directory and all sub-directories
Enable detailed error messages in IIS for your site to at least see the error text, it may contain a clue on what is happening:
https://blogs.msdn.microsoft.com/rakkimk/2007/05/25/iis7-how-to-enable-the-detailed-error-messages-for-the-website-while-browsed-from-for-the-client-browsers/
https://blogs.msdn.microsoft.com/rakkimk/2007/05/25/iis7-how-to-enable-the-detailed-error-messages-for-the-website-while-browsed-from-for-the-client-browsers/
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 22 guests