redirect 301 where contain .htaccess

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
assaki1
New Member
New Member
Posts: 1
Joined: Tue Jul 19, 2016 10:18 am

redirect 301 where contain .htaccess

Post 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 .
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: redirect 301 where contain .htaccess

Post by Rolf »

- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Post Reply

Return to “The Lounge”