Closed (works as designed)
Project:
Drupal core
Version:
7.2
Component:
path.module
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Jan 2011 at 10:23 UTC
Updated:
14 Oct 2012 at 19:04 UTC
Jump to comment: Most recent
Comments
Comment #1
eclypse commentedForgot to say it was after an upgrade from Drupal 6.20.
Everything in the core went ok. The test of clean-url was made without any additional module.
Comment #2
Tor Arne Thune commentedTake a look at #881376: "Run the clean URL test" UX is broken. There are forces trying to improve the Clean URL test UX.
Comment #3
droplet commentedcheck your .htaccess file, there is a bit diff.
Comment #4
eclypse commentedI've checked the .htaccess and read http://drupal.org/node/881376, nothing useful. Just continuing back to the same page.
Something strange is that another subdirectory with drupal7 installed works with clean-url!
Could it be a module that create this issue?
Comment #5
sashkernel commentedSame issue here.
was missing .htaccess, but I copied it from another site that had Clean URLs working.
pasted the file in site root: mydomain.com/new/
re-ran test, but still sitting on the same page with test button. :(
Comment #6
marcvangendeclypse, sashkernel: the issue #881376: "Run the clean URL test" UX is broken is about the usability of the clean URLs test page. It's about the face that you can click the test button over and over again without receiving any explicit feedback. That said, the test does work, so if you are returned to the page with the test button, that means your server is not yet capable of using clean URLs. For instructions on enabling clean URLs, see http://drupal.org/getting-started/clean-urls.
Comment #7
eclypse commentedIt worked fine in D6. Clean-urls did stop working after upgrading to Drupal 7.0.
furthermore, I have another clean drupal 7.0 installation in a subdirectory wich clean-url is activated
Comment #8
marcvangendeclypse: can you try installing a fresh Drupal 7.0 site in the exact same location and see if that does work? That way we can judge if it's an upgrade issue or something between D7 and your server.
Comment #9
sashkernel commentedI got mine resolved. My coworker suggested to check if site is actually reading .htaccess.
I added random sequence of characters and tested - Site was working fine. Which means it wasn't reading my .htaccess in the site root.
We requested our host to enable override of .htaccess, i believe it's ENABLEOVERRIDE ALL on server config. Right after they did it our site went down, which signified that it was reading my .htaccess, that is messed up.
Then we fixed .htaccess and everything was working after, including clean urls :).
FYI, my coworker had the same issue, but after he did all of the above, clean URLs still did not work. He said that he typed in the "clean url" link that he new existed (e.g. mysite.com/about = mysite.com/?q=about). And page displayed. Then he went to Config => Clean URLs and box for Enabling it appeared.
Hope this will help you, Eclypse.
Anyway, Thanks everyone for help.
Sash.
Comment #10
marcvangendGlad you were able to solve it. By the way, the correct syntax for your apache conf files is:
Comment #11
Tor Arne Thune commentedComment #12
Tor Arne Thune commentedSorry about that. Misread the usernames and didn't notice a second person having the same problem, so issue still active.
Comment #13
eclypse commentedThank you for your feed back sashkernel.
My .htaccess works fine.
=>marcvangend
I've tried a clean drupal7.0 installation in the exact same location and clean-url worked fine.
Comment #14
fandb commentedOn a fresh Install of Drupal 7.0 (Jan 11 2011 release) I could not get the site to use the clean urls.
sashkernel: Your coworkers 'fix' worked for me too.
I would test for clean urls, but the page didn't change, it seemed like nothing was happening, nothing at all was logged.
By typing in the 'clean' url for the page admin/config/search/clean-urls I was sent to the page with only the check box.
After checking the box the site urls corrected themselves.
Comment #15
zatarain21 commentedAs droplet said:
To solve the problem, is neccesary to change the .htaccess
In my case works like this:
If the installation is made in a /home/user/public_html/drupal7/
It is necesary to change in the file .htaccess the line RewriteBase
Comment #16
spaquet commentedWorking fine for me.
D7 new install.
I had to change the BaseRewrite to adapt to my environment (as mentionned by zatarain21).
PLaying with .htaccess is not that easy and my assumption is that previous version from D6 install should not be used for D7 and that a clean installation is likely to be better. Try using the file in D7 archive and replace the current one with the one from the archive.
Once done adapt to your needs from a clean starting point.
Comment #17
patrickmj commentedAfter some fiddling with the .htaccess setting according to the getting started page you link to, the clean urls are working when I type them into the browser directly. However, the clean URL check keeps failing, so there is some mismatch somewhere between the clean URLs working and what the test is actually testing.
Comment #18
coreyo commentedIt is definitely the case that the functionality sometimes does not work as intended. I have everything set up correctly and I am experiencing the "Button Does Nothing" behavior as well. Valid arguments were raised. Everyone with problems have enough of a valid point to warrant enough people posting or reading posts about the topic in order to figure out why they can't activate clean URLs.
However, I will also point out to all of the users that there are instructions in the .htaccess file regarding the RewriteBase directive. Thanks to zatarain for tipping me off.
I currently have drupal set up to use a multi-site setup. I have drupal in its own outside folder structure and I have alias directives in my apache config files for each site to activate it like so:
Alias /drupal /var/www/drupal
<Directory "/var/www/drupal">
AllowOverride All
Order allow,deny
allow from all
</Directory>
So, in order to fix the clean urls and clean url test, uncommenting the
RewriteBase /drupal
line in the .htaccess file did the trick. However, since this is a generic .htaccess file that is intended for use with multiple sites, I might choose a different subdirectory other than "/drupal", or no subdirectory at all for other sites. In this case, I want the RewriteBase to be specified in the site's apache config file and not the .htaccess file. So, I re-commented the line back in .htaccess file and changed the config file to read:
Alias /drupal /var/www/drupal
<Directory "/var/www/drupal">
AllowOverride All
Order allow,deny
allow from all
RewriteBase /drupal
</Directory>
Unfortunately, that seems to break the rewrite rules again. the "RewriteBase /drupal" directive only appears to work when it is in the .htaccess file. Can anyone explain this? Can anyone help me resolve this issue? Thanks in advance for any replies.
Comment #19
parijke commentedI experience exactly the same. I moved a site from server A to server B. After moving to server B, the clean urls check page is loaded and I am unable to activate the setting.
If I install a clean install on server B, clean urls are working fine.
Comment #20
davidcsonka commentedI'm having this issue, probably stemming from the fact that the installation is pulled down from a git repo, for staging.
I have my drupal installation on this staged server (which is having the clean URLs problem) in this location:
/home/user/drupal_dev/www
And in my web server's var directory, I set a symlink pointing to that www directory in my home. That way I don't have to worry about copying files into a root directory that requires sudo.
Can you offer suggestions on what my .htaccess file should look like, in regards to RewriteBase?
Thanks in advance
Comment #21
davidcsonka commentedI determined that the main culprit was that rewrite_module was not installed on my stock installation of Ubuntu and Apache2.
Following the instructions here: http://www.ebizontek.com/enable-modrewrite-module-apache-ubuntu and setting my .htaccess file to enable " RewriteBase / " solved my issue.
Clean URLs is now working properly.
Comment #22
valthebaldComment #23
jeetmail72Its working after making changes in /etc/apache2/apache2.conf and restart the server