redirect 301 where contain .htaccess
Posted: Tue Jul 19, 2016 10:24 am
Hi,
I have code to my .htaccess:
My file is in the root directory but don't it works.
I don't know but maybe my file should be in a different place or my htaccess is bad?
What is the correct redirect and where I should put the file .
I have code to my .htaccess:
Code: Select all
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?samplesite\.pl [NC]
RewriteRule (.*) http://samplesite-new.pl/$1 [R=301,L]
I don't know but maybe my file should be in a different place or my htaccess is bad?
What is the correct redirect and where I should put the file .