I'm wondering if this is a standard problem:
I looked up the instructions on setting pretty URLS for 1.6 in the wiki. I changed my config.php accordingly and tried to do the same for .htaccess. But, windows XP won't allow me to change the htaccess.txt to .htaccess because it needs an actual file extension.
Now on localhost, only the root of my site works, any sub page gives an error. Is this due to the missing .htaccess?
Is there any way to make this work or should I just try it on my remote server immediately?
Thanks,
Guido
[Solved] Pretty URLS on localhost won't work
[Solved] Pretty URLS on localhost won't work
Last edited by Guido on Sat Sep 05, 2009 9:03 am, edited 1 time in total.
Re: Pretty URLS on localhost won't work
- UPDATE -
I found something on the net about the rewrite mod in the apache config, but it was already set. Then I found that you could save
htaccess as ".htaccess" in Notepad. So I did and it would save, leaving no filename what so ever in the explorer.
Now, when I open my homepage it still works, and when I click on any of my sub-pages it goes to the XAMPP home page...
So it had some influence, but I don't understand what happened.
I found something on the net about the rewrite mod in the apache config, but it was already set. Then I found that you could save
htaccess as ".htaccess" in Notepad. So I did and it would save, leaving no filename what so ever in the explorer.
Now, when I open my homepage it still works, and when I click on any of my sub-pages it goes to the XAMPP home page...
So it had some influence, but I don't understand what happened.
Re: Pretty URLS on localhost won't work
OK got it.
Problem was this. When I open my htaccess.txt or config.php notepad just puts all the text in a row. So the original lines are all srewed up. The rewritebase line was all on one line like
#
#Sub-dir e.g: /cmsmsRewriteBase
where it should have been:
#
#Sub-dir e.g: /cmsms
RewriteBase
So now I got the settings right and it works on localhost.
Problem was this. When I open my htaccess.txt or config.php notepad just puts all the text in a row. So the original lines are all srewed up. The rewritebase line was all on one line like
#
#Sub-dir e.g: /cmsmsRewriteBase
where it should have been:
#
#Sub-dir e.g: /cmsms
RewriteBase
So now I got the settings right and it works on localhost.