Page 1 of 1

configure htaccess for 301 Redirect

Posted: Wed May 06, 2015 9:27 am
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]

Re: configure htaccess for 301 Redirect

Posted: Wed May 06, 2015 9:29 am
by Rolf

Re: configure htaccess for 301 Redirect

Posted: Wed May 06, 2015 9:42 am
by giapippo
I try to understand how it works
thanks