configure htaccess for 301 Redirect
Posted: Wed May 06, 2015 9:27 am
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]
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]