Hi,
I am having hassles with my friendly url. I have been hunting for a solution everywhere and really need some help.
I have installed older versions of modx numerous times, but am having problems this time with v 2.1.1-pl traditional.
Quick rundown of what I have done and what has happened...
1. I changed my system settings to the attached.
2. When previewing a page I get the correct friendly url. (eg
http://www.domain.co.uk/about.html - for the page that is titled About us)
3. After changing the .htaccess to the below things go a little wrong and I can’t clear my site cache and get a "500 - An Error Has Occurred. Please Check Your Scripts" error and can’t access any pages or the modx Manager.
# Friendly URLs Part
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} .
# Force all pages to go to www.domain.com for SEO
RewriteCond %{HTTP_HOST} !^www\.my-domain-was-here\.co.uk [NC]
RewriteRule (.*)
http://www.my-domain-was-here.co.uk/$1 [R=301,L]
# Friendly URLs
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
# Additional Settings Follow
ExpiresActive On
ExpiresByType image/gif A2592000
ExpiresByType image/jpeg A2592000
ExpiresByType image/png A2592000
BrowserMatch "MSIE" brokenvary=1
BrowserMatch "Mozilla/4.[0-9]{2}" brokenvary=1
BrowserMatch "Opera" !brokenvary
SetEnvIf brokenvary 1 force-no-vary
When I take out the .htaccess, I can access my modx manager again.
The index .php and .htaccess files are located at /www.domainname.co.uk/web/
I have a phpinfo.php at
http://www.domain.co.uk/phpinfo.php
If you need me to provide any info, just shout.
Mitch