Page 1 of 1

redirect 301 where contain .htaccess

Posted: Tue Jul 19, 2016 10:24 am
by assaki1
Hi,
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]
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 .

Re: redirect 301 where contain .htaccess

Posted: Tue Jul 19, 2016 10:50 am
by Rolf