Dear MODX Community,
How in the world am I supposed to get "Documents" to display as .html or .php files in the Address Bar? Hence the Browser Bar? I renamed the ht.access file to .htaccess I enabled Friendly Urls, and when I change the alias for the document.
A. It doesn't show as if it has been changed... and
B. The path to the URL of the alias does not work either, 404 baby!
Any ideas? I am a newbie, I will many more questions to come but, I am using the latest version of MODX Revolution and just need some help.
I want to display my pages as...
index.html
about.html
etc, etc.
Thank you very much!
Aaron
-
☆ A M B ☆
- 2,213 Posts
Hello,
Did you turn on Friendly URLs in the system settings as well?
And don't forget to clear the site cache.
AMDBuilder,
Hello,
Yes I did turn on Friendly URLS in the System Settings.
BobRay,
Alrighty, cleared.
Lucas,
I did install it in a sub-folder and has to change the RewriteBase, thank you very much that fixed a portion of the issue.
The only thing I have left to figure out is how to force display the page name and extension in the Address Bar/URL/Browser Bar.
Any ideas on that?
Thank you all three of you very much! Very helpful!!! :-D
Make sure you have this in the <head> section of all templates:
<base href = "[[++site_url]]" />
Also, manually delete all files in the core/cache directory.
BobRay,
I do have that tag within the <head></head> tags, but I will manually delete all the files in the core/cache directories.
I just cached it, but it still doesn't show the document name in the address bar.
Thank you!
-
☆ A M B ☆
- 3,141 Posts
Any MODX-generated links (ie [[~5]] for page 5) will use the friendly url syntax. The non-furl way (index.php?id=5) will still work, though that seems to be (getting) fixed for 2.2 with optional strict SEO URL handling.
Make sure every resource has an alias.