By tnanek on
Okay, in setting up my site (new site, ideally to replace the other one once I set it up properly), I am having trouble with the clean urls. When running the clean URL test, it brings me to the front page. I'm assuming this means it doesn't work, but the thing is, elsewhere on the server is my main site, which was set up by someone other than myself. And that has clean URLs working. The sites are both using the same .htaccess (I know because in fixing a problem for this sites install.php to function correctly, I edited that sites .htaccess and enabled php 5, which solved it), so the .htaccess has nothing to do with it).
Comments
First, which host are you
First, which host are you using? (bluehost.. monster.. IX..etc?)
I'm using Host Gator
I'm using Host Gator
RewriteBase /
have you tried RewriteBase / on your .htaccess file?
"The most important gift we can give the world's children is the gift most likely to lead to future peace and prosperity - and that is the gift of a good education."
Laura Bush - First Lady
http://sunflowermission.org
in the interim, try pathauto..
not sure what to tell you, but have you looked at pathauto module? it will auto-generate a 'clean url' style alias for every node (of type clean or type =?a whatever jumbled crap appears) - turns the title into the url as an alias 'automagically' and great for search engines or link sharing...
I think you wish to add
I think you wish to add another .htaccess in the main directory of your new site.
Or possibly remove it out from under the main directory of your old site.
Not:
example.com/newsite/
example.com
but:
newsite.example.com/
example.com/
http://www.henriettes-herb.com
Thanks, that did it. Adding
Thanks, that did it. Adding another one worked well - I took the default one and made sure to add
AddHandler application/x-httpd-php5 .phpto it in order to activate php 5 again (better to put it twice than not enough).
clean URLs
I have a similar problem.
I'm switching host and am now on a test site with A2hosting, which is php5 only.
I have rebuilt my site from scratch with D6.1
My old site (using D5.7 and a php5 handler) has clean URLs working properly, but I can't enable it on my new site.
The path module is enabled.
I checked that the .htaccess file was loaded on the server. Do I need a php5 handler?
I plan on asking my host if mod_rewrite is enabled for Apache, but before I submit a support ticket, I want to make sure I've got everything right on my side.
php5 handler
Update:
I tried adding the php5 handler to the D6.1 .htaccess file but it didn't make any difference.
Still can't enable Clean URLs.
Need help with Clean URLs
I am having problem with Clean URLs, I keep getting Error 404 when I start "Run the clean URL test".
Here is my environment: OS suse10, Apache2, php5, and Mysql
Apache2 test:
apache2ctl -t --> Syntax OK
apache2ctl -M --> php5_module (shared)
rewrite_module (shared)
Syntax OK
Apache2 httpd.conf
AllowOverride All
Order allow,deny
Allow from all
/srv/wcc/htdocs/drupal-5.6/.htaccess
RewriteEngine on
RewriteBase /drupal-5.6
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
Please advise. Thank you
What's in your rewritebase,
What's in your rewritebase, and how does that compare to your drupal site root directory?
http://www.henriettes-herb.com
solved
In my case, the problem was solved after going from test site to live site.
I read in http://www.drupal.org/node/15365 (Sept.29, 07 post) that someone had that problem, so I went ahead with the live site and can confirm that it is the case; Clean URLs don't seem to work on test sites.