combine pretty perma and redirect
-
Hi,
I have htaccess setup for pretty perma links and would lika to add code to redirect from https://www.domain.com to domain.com. How do I combine those rules?
pretty perma links:
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>
redirect:
RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} !^domain.com$ [NC] RewriteRule ^(.*)$ https://domain.com/$1 [L,R=301]
Thanks, Bo
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘combine pretty perma and redirect’ is closed to new replies.