By dorien on
Hi,
I am trying to enable clean-urls on my opensuse 10.3 server.
First of all, I enabled mod_rewrite and phpinfo() is showing that it works
I use the standard .htaccess. The exact same site works with clean-urls on hostmonster
But it gives a 404 if I do the clean-urls test.
I checked my apache2 log and it says something like: File does not exist: /srv/www/htdocs/home referer http://localhost/~dorax/sweetlo/?q=admin/settings/cleanurls
/srv/www/htdocs is not the right directory, since I work with mod_userdir, the site is located in /home/dorax/public_html/sweetlo
I have tried the AllowOverride All in the config file of the server and of the userdir
Any ideas on what to try next?
Comments
Solved
It appears I needed to uncomment the rewrite base in my .htaccess and set it to:
~dorax/sweetlo
This is not the folder it is in! But the address after localhost in the url bar, which was my mistake from the beginning...
Thanks for posting your
Thanks for posting your solution. This will help others with same problem. keep up the good work!
Clean urls openSUSE 11.0 Drupal 6.8
Still i cant seem to figure out what's the problem, I have tried all the solutions mentioned in the forums throughout, but just cant seem to get it working!
I have checked if the mod_rewrite module is enabled.. and yes it is..I can see it in phpinfo()
Also, I have made all the changes mentioned in the .htaccess file as mentioned above and also as mentioned in the online Handbook.
i have actually created an alias for my drupal6 site and am still in the development phase. I have saved the drupal6 dir under the public_html dir, and have created an alias for the same ( had to do this, since as posted on one of the forums, my themes were not working till then -still a mystery as to what the actual reason for it is - jus thought that may be its not redirecting to the proper path while selecting the theme- the post is here: http://drupal.org/node/348598)
When I tried to AllowOverride All in the Alias script for the same, the site said - Access forbidden!
However, it is still AllowOverride All in the script for the root document of apache...
Can anyone please help!?!?!?!?
Thanks,
Radhika
It's working for me on
It's working for me on OpenSuse 11.0 and Drupal 6.8.
You need to change the .htaccess file and uncomment the "rewritebase /" line. You need to change it to
rewritebase/~username/folderofdrupalunderpublic_html/
--> basically it should give you the part of the url that you see in your browser after localhost.
It should work like this.
If not, you can edit the httpd.conf file AND mod_userdir.conf (in /etc/apache2) and change all occurrences of AllowOverride None to AllowOverride All.