Page 1 of 1

Pretty URLS and WAMP [SOLVED]

Posted: Tue Oct 09, 2007 2:44 am
by hexdj
I am trying a CMSMS website locally thru WAMP. I followed the Pretty URLs guide from the Wiki, as I have done a few other times (I've tried it on real servers though).

First off I was getting an error message saying:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.


So I went into to WAMP's config files>httpd.conf and changed this line

# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
AllowOverride All

Into this:

AllowOverride None

And the home page of my dummy site seems to work, also the address bar gets rewritten. But child pages are not showing, for example when I click on "How CMSMS Works" I get this message:

Not Found
The requested URL /dummysite/how-cmsms-works/ was not found on this server.



I think it's probably a setting in WAMP that I have to fix but I can't tell for sure. Any help will be appreciated. THANKS!

Re: Pretty URLS and WAMP [SOLVED]

Posted: Tue Oct 09, 2007 3:56 am
by hexdj
In case anyone else goes thru the same isssue, I found a solution

In WAMP>Config Files>httpd.conf

Go to this line and remove the pound sign (its commented by default):
#LoadModule rewrite_module modules/mod_rewrite.so

Also, you'll have to put AllowOverride back to All in httpd.conf

Don't forget to restart all WAMP services after you do this.

Then in your local .htaccess file, change the RewriteBase / line to RewriteBase /Your-Site-/

This will work if your local site's folder isĀ  inside your localhost default folder