Clean URLs for EasyPHP 2 (with Apache 2)

Last modified: October 26, 2007 - 22:08

For EsayPHP 2
1. Uncomment this:
#LoadModule rewrite_module modules/mod_rewrite.so

2. Under <Directory "${path}/www"> Change

AllowOverride None
to
AllowOverride All

Display problem in STEP 2

doc2@drupalfr.org - January 11, 2008 - 14:14

Display problem in STEP 2 title:

2. Under Change

Please, under *what* should the change be made?

I precise, that the change should be made in the file (on Windows) C:\Program Files\EasyPHP_2.0b1\conf_files\httpd.conf

Thanx in advance, regards

A.R.

Problem is still there

cbougouin - March 31, 2008 - 11:39

I had made all these changes into the file httpd.conf but I still couldn't activate clean url in Drupal.
Alias for my site has been created with EasyPHP Administration page.

I have made some tests:
- According to phpinfo(), rewrite module is loaded.
- If I write an RewriteRule in the file .htacces of Drupal, it's OK.

Anyone can help me?

C. Bougoüin
AJLSM

had same problem--but fixed it

lsburton - April 18, 2008 - 23:21

I had the same problem. After some time poking around in the httpd.conf file I saw that there were 2 "AllowOverride" statements that needed to be set to all. (Following instructions above, I had only changed the first "AllowOverride". Here's what I did, and it worked:

In httpd.conf:

uncomment this line:
LoadModule rewrite_module modules/mod_rewrite.so

Do a Find on "AllowOverride"

Change to: AllowOverride All

Should be two "AllowOverride All" statements.

Works for me now.

Best
lara

Kind of logical but not listed

Subversive - August 7, 2009 - 20:50

To enable clean URL's for aliased directories:
(Instead of step 2)
With existing aliases: go to the bottom of httpd.conf (you may want to open this file in a linux-newline aware editor).
Find the "Alias" that corresponds to your directory. Change AllowOverride to All in the <directory> block corresponding to your alias.
For new aliases: just be sure to change AllowOverride to All.

Now go to your Drupal directory's .htaccess file and and find the line with RewriteBase. Uncomment or add the line with
RewriteBase /derp. Where derp is replaced by the alias (the thing you type in your browser) without trailing slash.

By the way in my experience, it is not necessary to change "all" occurences of AllowOverride

 
 

Drupal is a registered trademark of Dries Buytaert.