Forum Moderators: phranque

Message Too Old, No Replies

Redirecting urls.

I cant fix this problem

         

asantos

3:57 pm on Jan 10, 2007 (gmt 0)

10+ Year Member



Hi, i run all tests on my home server and everything works fine.

When i upload the site to the hosting server, the page request throws me an 500 Internal Server Error.

The htaccess line that is causing this behaviour is:
RewriteRule ^projects/something/?$ /plugins/something [R=301,NC,L]

Here is the whole htaccess:

# Start
RewriteEngine On

# Specials
RewriteRule ^projects/something/?$ /plugins/something [R=301,NC,L]

# WordPress
RewriteBase /
RewriteCond %{REQUEST_FILENAME}!-f
RewriteCond %{REQUEST_FILENAME}!-d
RewriteRule . /index.php [L]

What could be wrong?

jdMorgan

5:12 pm on Jan 10, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What's in your server error log?

Jim

asantos

6:09 pm on Jan 10, 2007 (gmt 0)

10+ Year Member



There are no 500 error messages in the error log :s but i do get this with the err msg:

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

Is there another way to redirect an url?

asantos

6:18 pm on Jan 10, 2007 (gmt 0)

10+ Year Member



nevermind. got it fixed ;)

jdMorgan

8:47 pm on Jan 10, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Care to share with others?

Jim

asantos

2:55 pm on Jan 11, 2007 (gmt 0)

10+ Year Member



Sorry hehe. Here it goes:

Since a RewriteCond was already written somewhere above, i HAD to specify a RewriteBase before the new RewriteRule.

That's it.