[Solved] Pretty URLS on localhost won't work

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
Guido
Forum Members
Forum Members
Posts: 221
Joined: Sat Aug 29, 2009 3:00 pm

[Solved] Pretty URLS on localhost won't work

Post by Guido »

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
Last edited by Guido on Sat Sep 05, 2009 9:03 am, edited 1 time in total.
Guido
Forum Members
Forum Members
Posts: 221
Joined: Sat Aug 29, 2009 3:00 pm

Re: Pretty URLS on localhost won't work

Post by Guido »

- 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.
Guido
Forum Members
Forum Members
Posts: 221
Joined: Sat Aug 29, 2009 3:00 pm

Re: Pretty URLS on localhost won't work

Post by Guido »

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.
Locked

Return to “[locked] Installation, Setup and Upgrade”