Can anyone help me please.
I'm having trouble redirecting an old url /index.php to a new url: /nl/newpage
It is on the same domain, just uploaded a new website and want to redirect 301 the old urls to the new ones!
Everything I try doesn't work.
(EVO site with YAMS)
My .htaccess:
# Friendly URLs
RewriteEngine On
RewriteBase /
# Fix Apache internal dummy connections from breaking [(site_url)] cache
RewriteCond %{HTTP_USER_AGENT} ^.*internal\ dummy\ connection.*$ [NC]
RewriteRule .* - [F,L]
# Exclude /assets and /manager directories from rewrite rules
RewriteRule ^(manager|assets) - [L]
# Redirect from mydomain.com/rootname to mydomain.com/rootname/
RewriteRule ^nl$ nl/ [R=301,L]
RewriteRule ^en$ en/ [R=301,L]
# The Friendly URLs part
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^nl/(.*)$ index.php?q=$1 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^en/(.*)$ index.php?q=$1 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
[ed. note: fourroses666 last edited this post 12 years, 3 months ago.]
Evolution user, I like the back-end speed and simplicity

hmmmz, index.php somehow can't be redirected
other pages doesn't have that issue, more testing at the moment...
WORKS:
RewriteRule ^oldpage.php$ http://domain.nl/nl/newpage [R=301,L]
Somehow need to redirect index.php to -> http://domain.nl/nl/newpage !
Evolution user, I like the back-end speed and simplicity

nevermind, no need to redirect index.php
Evolution user, I like the back-end speed and simplicity
