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

Roborobotus’s picture

Have you set RewriteEngine on and set up proper RewriteBase in your .htacces file in /ross/blog?

deejross’s picture

Well, I really don't know what the .htaccess file should contain in the /ross/blog folder. I suck at regex.

Roborobotus’s picture

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.

hellig_usvart’s picture

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!

deejross’s picture

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.

Roborobotus’s picture

Try changing

RewriteBase /ross/blog

to

RewriteBase /~ross/blog

deejross’s picture

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!

hellig_usvart’s picture

nice... it's always good if things work =)