Hi all,
I started using MODx Revolution with Beta 5 and really love its many improvements, especially the much streamlined work flow. Right now I only have the following little issue with friendly URLs.
When setting a link via a Wayfinder call or <a href="[[~id]]">link text</a>, Apache gives out an error message, except for the home page.
Here is my document tree setup and the error messages I receive:
Files and Folders:
+
Home (id 1), alias:
home
+
Products (id 2, document folder), alias:
products
++
Category 1 (id 3, child document of "products" folder), alias:
category-1
+
Contact Us (id 6), alias:
contact
Output:
Home: http://localhost/modx_rev/
Alias is not displayed, but page opens without an error message
Products: http://localhost/modx_rev/products/
Not Found
The requested URL /modx_rev/products/ was not found on this server.
Category 1:
http://localhost/modx_rev/category-1.html
Not Found
The requested URL /modx_rev/category-1.html was not found on this server.
Contact Us:
http://localhost/modx_rev/contact.html
Not Found
The requested URL /modx_rev/contact.html was not found on this server.
-------------------------------------------------------------------
The following are my MODx Revolution system settings and server configuration with regard to friendly URLs:
System-->System Settings-->Friendly URL:
Automatically generate alias: 0
Use friendly Alias Path: No
Use friendly URLs: Yes
Use friendly aliases: Yes
container_suffix: /
Directory structure:
/var/www/modx_rev
.htaccess file in modx_rev folder:
RewriteEngine On
RewriteBase /modx_rev
# The Friendly URLs part
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA,NC]
.htaccess file in manager folder:
RewriteEngine On
-------------------------------------------------------------------
I tried fiddling with these settings but haven’t been able to make MODx create usable links. Therefore I hope someone could point me to a possible solution.
Best regards,
Stefan