Hi.
Some time ago I moved a site from www.site.com/modx/ to the root www.site.com
I did this in .htaccess with the line:
redirect /modx/ http://www.site.com/
This worked very well.
Now I decided to turn on Friendly URL’s on the same site.
This works well for all current URL’s, but the old redirect now fails.
This old URL:
http://www.site.com/modx/index.php?id=71
Gets directed to:
http://www.site.com/index.php?q=modx/index.php&id=71
Which obviously fails.
I have not been able to figure out how to use Friendly URL’s and also keep my old redirect.
Here is the htaccess file:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
redirect /modx/ http://www.site.com/
Any assistance would be greatly appreciated.
Cheers,
Andreas