No mod rewrite
Posted by: computergenius (178.239.213.---)
Date: August 01, 2014 09:36PM

I have just updated to the latest version of Wampserver... Apache 2.4.9, MySQL 5.6.17, with a copy of 5.1.41 containing the old databases, and PHP 5.5.12.

Previously I was on Apache 2.2.8, MySQL 5.1.41, and PHP 5.2.6

This with Wampserver 2.5 on Vista SP2.


Everything works - except the .htaccess rewrites. They just return 404s (as I would expect, if the rewrites were not in place)

I ended up making a fresh install, after screwing up the old setup.

I have checked that I have
LoadModule rewrite_module modules/mod_rewrite.so
in the correct http.conf, and I see a tick in Apache Modules - Rewrite_Module.

Any suggestions as to what I might have missed?

Options: ReplyQuote
Re: No mod rewrite
Posted by: computergenius (178.239.213.---)
Date: August 01, 2014 09:50PM

Found it! So I will put the answer here in case it helps someone else

<Directory />
# AllowOverride none
# Require all granted

Options All
AllowOverride All
</Directory>

Options: ReplyQuote
Re: No mod rewrite
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: August 02, 2014 04:51PM

Thats not the place to put it!

Put it in the section of httpd.conf that starts with


<Directory "d:/wamp/www/">

and change the existing line

AllowOverride None

to

AllowOverride All


Also change the section you amended back to

<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
</Directory>

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: No mod rewrite
Posted by: computergenius (178.239.213.---)
Date: August 02, 2014 05:04PM

I will take a look at this.

Can you tell my why what I did was wrong?

I opened Wampserver this morning, and it wasn't working, so I have ended up re-installing everthing. I am about to post for help in a new thread, as it isn't the same problem

Options: ReplyQuote
Re: No mod rewrite
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: August 02, 2014 05:37PM

This section of Apache Parameter
<Directory />

Is for protecting the root directory and all directories below it i.e. your whole system


This idea is you set absolute protection on everything using that section, you then allow things in specific sub directories. i.e. make everything very secure and then only allow specific things to specific areas of your file structure.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: No mod rewrite
Posted by: computergenius (178.239.213.---)
Date: August 02, 2014 05:54PM

Thanks, that makes sense

Options: ReplyQuote


Sorry, only registered users may post in this forum.