I see many other posts on this subject and I really have read through a lot of them, but I really am stuck. I’ve been developing my MODX site on GoDaddy where Friendly URLs seem to work, but in switching to a different hosting provider for the live site, they now no longer work.
- I already got the second hosting provider to enable options and mod_rewrite in Apache
- My site is deployed to the base directory, so I don’t need to adjust the path that’s being rewritten or the basepath
- I’ve got my ZLIB’s commented out
- I’ve turned on friendly URL’s under Configuration > Friendly URL’s
- I know my .htaccess file is being invoked because it was blowing up previous to me getting the hosting company to fix the apache conf (see first bullet)
Just so I’m clear, when I say "doesn’t work", I mean that going to anything other than index.php?id=<page id> bounces me to the home page.
The thing that’s really suspicious to me is that the mod_rewrite simply redirects inbound traffic which does not resolve to a file or directory and passes it back into Modx as "index.php?q=<failed resource request>". So, theoretically, if I rename my .htaccess file back to ht.access and leave Friendly URLs on with an suffix of .html, then calling index.php?id=10 *should* be the same as index.php?q=10.html (which is what Apache would create from a request to 10.html) - yet, index.php?q=10.html simply bounces me back to the homepage. Its almost like Modx is ignoring the q parameter.
Any ideas on what I might be missing or misunderstanding?
BTW - I’m running Modx version 1.0.
Thanks for any help and thanks to the Modx team for a great product - despite this hiccup, its saved me a lot of time.
- Aaron Anderson
[email protected]