Hi, I'm currently trying to redo our church website, and I want to do it "right."
In that process, I'm trying to enable the "clean urls" option, but I keep getting the message saying that it is not available on my server. Now, at least one other place I read, the person said that the clean urls were enabled right at the start, b/c it was set up to work to start with - server level.
So, I kept reading and trying. I also contacted the host, and they said they were showing that I DID have mod_readwrite enabled.
So why is it I cannot get the thing working?
Also, I cannot seem to find the file referenced in the drupal documentation:
http://drupal.org/node/15365
The documentation says I should look for the http.conf file:
2. You may need to edit your Apache configuration files for your site: the configuration information may be found in httpd.conf, a virtual-host-specific file, or in an .htaccess file in your Drupal installation directory. You can find this file usually in /etc/httpd/conf/httpd.conf or /etc/apache2/apache2.conf. You may use
find /etc -name httpd
to find the file if it is located else where in your Unix system.
If you do not have write permissions to these files, and Clean Urls is not working out-of-the-box for you, you may have to ask your sysadmin to help about now. You may still be able to READ these conf files to troubleshoot a little however.
Once steps 1 and 2 are complete it is necessary to choose either of the options below to finish setting up Apache to work with Clean Urls.
Can anyone give me any sort of clues on this?
I do have the .htaccess file, and I can paste the contents here if need be...
Comments
Just to follow-up
The issue was corrected. The tech support at Anhosting kept working with me to correct the errors. They even went into the .htaccess file trying different fixes at different times from me. They finally found the error and corrected it for me. I later looked to see what it was, precisely. The error was b/c I had initially installed Drupal on the "test" domain for the server, and then when my domain finally transferred successfully, one line had to be updated to reflect the correct address. So, after that, problem solved!
It was actually solved within a day or two, but I forgot to post the results here.
And that one line is...
For anyone else searching for this info, the one line to change is in your .htaccess file:
On or around line 93 (at least in 5.x), you'll see this line:
# RewriteBase /
Uncomment it by removing the #, so it will read:
RewriteBase /
That's all - this problem occurs with anyone in a Virtual Host environment (or so I read somewhere else yesterday, when fixing this same problem on a Mosso hosted website).
Thanks for this post
This was very helpful, since I just switched to AN Hosting as well - and am also creating a church website, oddly enough :)
Their service does support Clean URLs; you just need to configure the .htaccess properly for your site.
If you are running Drupal in the root directory of your main domain, or of an add-on domain, you need to uncomment the line in the .htaccess which says RewriteBase /.
However, in my case, I have not yet gotten my domain set up, so for the time being, I am living at ~myusername/cms. Thus, I needed to use the other line, the one that goes RewriteBase /~myusername/cms.
Nonprofit / EdTech Mentor
http://drupal.org/user/168664
Thank you!
Thanks for that, very helpful (and avoided me to create a ticket for such a simple thing!)
Now let's hope the issue with upload_max_filesize to get solved... did anyone of you need to set it higher? did you solve it?
jedihe