I'm now facing the problem that new url's are being shown with the old url.
I want to redirect everything from the old domain to the new domain with a 301 redirect.
My .htaccess looks like this:
Code: Select all
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.peekwatersport\.nl$ [NC]
RewriteRule ^(.*)$ http://www.peekwatersport.nl/$1 [L,R=301]
# 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]
# Rewrites urls in the form of /parent/child/
# but only rewrites if the requested URL is not a file or directory
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
The redirect works, but the part after the domainname not completely.
For example this url:
http://www.ed-peek.nl/boten/44/71/maril ... ender.html
must become:
http://www.peekwatersport.nl/boten/44/7 ... ender.html
but becomes:
http://www.peekwatersport.nl/index.php/ ... ender.html
Anyone an idea how to solve this?