By deejross on
I have two drupal installations on a server in different folders to host two different blogs. The first is in /blog and works perfectly with Clean URLs, but the second installation is in /ross/blog and takes me to a 404 page when I click the test clean url link. Is there a way to fix this, or am I stuck with ugly urls on the second blog?
Thanks in advance for your help.
Comments
Have you set RewriteEngine
Have you set RewriteEngine on and set up proper RewriteBase in your .htacces file in /ross/blog?
Well, I really don't know
Well, I really don't know what the .htaccess file should contain in the /ross/blog folder. I suck at regex.
I'm new to Apache and PHP
I'm new to Apache and PHP stuff so I can be wrong but it's worth a try ;) If your site is under:
www_root/ross/blog
try editing your .htaccess file (make a backup first!!!):
RewriteEngine on
RewriteBase /~ross/blog
Worked for me.
maybe you need to adjust
maybe you need to adjust $base_url in the sites/default/settings.php file. (plus/minus line 115)
e.g.
$base_url = 'http://www.domain.com/ross/blog'; // NO trailing slash!I just tried that and it
I just tried that and it didn't seem to affect anything. I also, RewriteEngine is On and I uncommented RewriteBase and set it to /ross/blog, but still getting a 404 error.
Try changing RewriteBase
Try changing
RewriteBase /ross/blog
to
RewriteBase /~ross/blog
SOLVED!
I read the 404 error a bit more carefully and noticed it was looking in the wrong place. Even though the site is in /ross/blog, the actual domain name that I'm using points to /ross, so by changing the RewriteBase to simply, /blog, Clean URLs now works! Thanks to both of you for your help...and your response time!
nice... it's always good if
nice... it's always good if things work =)