I have a newly installed, MODx, sample site. I have installed it into a subdirectory called ’modx’. I have edited my .htaccess file and switched on SEO friendly url’s.
If I try to access a page directly it works OK. ie:
http://www.lotwplantation.com/ajax.html
However if I try to navigate using a link on that page the link will insert the /modx/ part of my file path. So it would become:
http://www.lotwplantation.com/modx/ajax.html
The resulting page is not accessible (404)
The directory structure when viewing the site through the hosting companies cp is: /www/www/modx
I have edited my .htaccess file aand it’s path is: /www/www/.htaccess
The relevant code in the .htaccess file is as follows.
# Options +FollowSymlinks
RewriteEngine On
RewriteBase /modx
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /modx/index.php?q=$1 [L,QSA]
I have also renamed the /modx/manager/.htaccess file to turn off rewrites for that folder.
I am obviously doing something wrong! I have come across similar posts but none of the suggestions have worked for me.
The hosting company is ICDSoft. The server is running RedHat Linux, PHP 5.2.5, MySQL 5.0.45 and I have installed MODx version 0.9.6.1. The issue affects a variety of browsers.
I am very new to this, so apologies if this post is in the wrong forum, or I have failed to find the answer from the old posts.
Any help would be greatly appreciated.