I'm having a problem with redirecting (htaccess 301) my old site url's (not cmsms) to my brandnew cmsms site.
The current site uses urls like:
www.flevovoet.nl/index.php?id=behandeling (This is NOT cmsms)
the new cms sites users urls like:
www.flevovoet.nl/overzicht-behandelingen/
other examples:
index.php?id=klachten -> /voetklachten/
I can't get those redirects to work in .htaccess I _think_ that CMSMS is already using ?id= as an internal variable.
Currently i'm using the default cmsms htaccess for pretty urls (mod_rewrite).
Code: Select all
RewriteEngine on
RewriteBase /
# 301 Redirect all requests that don't contain a dot or trailing slash to
# include a trailing slash
RewriteCond %{REQUEST_URI} !/$
RewriteCond %{REQUEST_URI} !\.
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 [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
This is quite an issue because of the current google rankings.