Hi,
I’ve created a basic horizontal menu with some page links using Wayfinder, and then gone into Tools -> Configuration -> Friendly URLs in order to turn on "proper" links (i.e a link will go to a descriptive name for a page e.g about.php, instead of id= etc.)
Configured Friendly URLs as follows:
Friendly URLs = YES
Use Friendly aliases = YES
Use Friendly alias path = YES
Allow duplicate aliases = NO
Automatically generate alias = NO
I’ve also set prefix and suffix to blank as I don’t really need them.
However when I try to browse to http://mydomain/somepage, where "somepage" is a published resource and has an alias of "somepage" set, I just get a Page Not Found.
Can you tell me where I’m going wrong? As far as I can tell it’s as it should be, but obviously not!
Thanks
Just to add that I renamed both my ht.access files (the one in root and the one in the manager folder) to .htaccess. According to the modX wiki I shouldn’t need to make any amendments to either because I’m running version 1 (not 0.9.5 or earlier).
Actually, even if you have the suffix set to .html, typing
somepage
somepage/
somepage.html
will all load the page (unless you have a strict url plugin installed).
Is the page in a folder (i.e. is it a child of another document)? I would suggest setting
Use Friendly alias path = NO
and trying again. You could also post a link to your site if it is online (not the manager, just the site), and it might help someone figure out what is wrong.
Thanks for the replies guys. I actually found out that it was an Apache setting causing the issue- here’s the reference to it in the wiki in case anyone else gets the issue:
"If you get any other response (e.g. the page loads normally), the most probable cause lies in the main Apache configuration file (commonly in /etc/httpd/conf/httpd.conf in Linux). The directive "AllowOverride" is probably set to "None". Change AllowOverride from "None" to "All" and test again".
I changed the first instance of the AllowOverride value (which appears to be "global"), restarted Apache and all seems well now (with or without suffixes).