http to specific URL using htaccess in WordPress
-
I am looking for help with the htaccess redirect rules.
I have url www.example.com.au and I want the following redirection https://www.example.com.au =>https://www.example.com.au https://www.example.com.au =>https://www.example.com.au/page-2
I found the following .htaccess rules but its not working for me
RewriteEngine On RewriteCond %{HTTP_HOST} www^example\.com.au [NC] RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%. {HTTP_HOST}%www^example.com.au/page-2 [302 L]
I will be using the above rule for a WordPress site so do i need to paste the above rules at the bottom so that it doesn’t overruled by other rewrite rule?
Thanks in advance.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘http to specific URL using htaccess in WordPress’ is closed to new replies.