-
- 573 Posts
Hi,
i really want to get friendly urls working, i know there are lots of posts about it already but none seem to explain very well the steps which need to be taken.
i have done this:
- set Use friendly URLs to yes
- set Suffix for friendly URLs to .html
- set Use friendly aliases to yes
- set (on what i hope to be login.html) Document’s alias as login
i am unable to name the file .htaccess! is this normal?
what am i doing wrong?
many thanks,
G
-
- 1,097 Posts
What happens when you try to name the file .htaccess?
-
- 573 Posts
its says you must type a file name! i might be being stupid here when we say .htaccess you do put the . in?
-
- 4,213 Posts
If that error comes with notepad when you’re trying to save it, type ".htaccess" as filename, including quotes.
"He can have a lollipop any time he wants to. That's what it means to be a programmer."
-
- 7,075 Posts
Are you testing local ? (if not, you’ll have to ask your hosting service if they support mod_rewrite... or if they require specific settings -> some host do require a little tweaking, like OVH in france which runs a proprietary mod called mod_ort instead of mod_rewrite)
If so, check that Apache’s mod_rewrite module is properly loaded...you might have to edit your Apache settings in httpd.conf :
i.e make sure the line
LoadModule rewrite_module modules/mod_rewrite.so
is not commented
Once you’ve edited the file, don’t forget to restart Apache.
That should do the trick
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id
-
- 1,097 Posts
Can you please paste the full URL of the page that works (presumably index.php) and the full URL of the linked page that 404s.
What software are you using for the local webserver? Have you looked at the .htaccess tips for that?