Hi all!
I’ve a problem with Friendly URLs in MODx 2.0.2-pl.
I’ve read some topics and wikis but I haven’t found the solution.
SITE STRUCTURE:
web
-
home
-
contact (alias: "contact")
-
customer (alias: "customer") [set as "container"]
-
abc (alias: "abc")
-
def (alias: "def")
-
ghi (alias: "ghi")
- ...
So...
home page is at
http://www.mysite.com/
contact page is at
http://www.mysite.com/contact.html
customer page is at
http://www.mysite.com/customer/
abc page is at
http://www.mysite.com/customer/abc.html
...and so on.
Everything works fine but when
http://www.mysite.com/customer/abc.html (or similar) is open the links in the pages become:
home page -
http://www.mysite.com/
contact page -
http://www.mysite.com/customer/contact.html
customer page -
http://www.mysite.com/customer/customer/
abc page -
http://www.mysite.com/customer/customer/abc.html
...and so on.
This is my .htaccess:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
Someone can tell me where is the error or what can I do to solve the problem?
Thanks
Matteo