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
Display problem in STEP 2 title:
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
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
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
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
AllowOverrideto All in the<directory>block corresponding to your alias.For new aliases: just be sure to change
AllowOverridetoAll.Now go to your Drupal directory's .htaccess file and and find the line with
RewriteBase. Uncomment or add the line withRewriteBase /derp. Wherederpis 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