configure htaccess for 301 Redirect

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
giapippo
Forum Members
Forum Members
Posts: 176
Joined: Tue Feb 28, 2012 1:24 pm

configure htaccess for 301 Redirect

Post by giapippo »

hello to all
I'm developing a new website for a client who already has an older site
some pages from the old site are positioned well on google
but the new site will not exist
I have to configure the .htaccess file to drive traffic of the old pages to the new but do not understand how to configure it
could you help me?

I must configure this piece of code
right?


# 301 Redirect all requests that don't contain a dot or trailing slash to
# include a trailing slash
# but ignore POST requests.
#RewriteCond %{REQUEST_URI} !/$
#RewriteCond %{REQUEST_URI} !\.
#RewriteCond %{REQUEST_METHOD} !POST$
#RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L]
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: configure htaccess for 301 Redirect

Post by Rolf »

- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
giapippo
Forum Members
Forum Members
Posts: 176
Joined: Tue Feb 28, 2012 1:24 pm

Re: configure htaccess for 301 Redirect

Post by giapippo »

I try to understand how it works
thanks
Post Reply

Return to “The Lounge”