- Impact
- 43
I want to redirect domain.se and www.domain.se
to www.domain.se/index.php?main_page=index&language=se
But i can only get the first to redirect how do i do with www.domain.se
Here is the code i have been using. I have only set up domain.se but how do i set up www.domain.se
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{HTTP_HOST} !^(www\.|$) [NC]
RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI}/index.php?main_page=index&language=se [L,R=301]
to www.domain.se/index.php?main_page=index&language=se
But i can only get the first to redirect how do i do with www.domain.se
Here is the code i have been using. I have only set up domain.se but how do i set up www.domain.se
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{HTTP_HOST} !^(www\.|$) [NC]
RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI}/index.php?main_page=index&language=se [L,R=301]