0

I have the following .htaccess:

#Options +FollowSymLinks

RewriteEngine on
RewriteBase /phptest

on my local testing server (http://localhost) I have to uncomment the first line for the site to work. Otherwise I get Error 403 (Forbidden).

Once I upload the page to my webserver (FastHosts) I get Error 500 (Internal Server Error) if the first line is not commented out.

If I comment it out, my page loads but it cannot find the page content which is mydomain.com/phptest/Home

I get a 404.

Any suggestions on what the problem might be?

2
  • It looks like you have a different configuration on your server than you do with localhost. Commented Jan 6, 2011 at 10:50
  • It appears so, how can I check? I have nothing but ftp access to the server. Commented Jan 6, 2011 at 11:45

3 Answers 3

1

Check for mod_negotiation to be disabled. It gives unexpected results in combination with mod_rewrite.

Sign up to request clarification or add additional context in comments.

Comments

0

I think you need to modify your httpd.conf to allow for AllowOverride All

What does your error log say?

Comments

0

Can you please check whether mod_rewrite is enable or not in your php.ini file. If not then please enable that.

2 Comments

would t show up in phpinfo? I don't have access to the servers configuration files.
Yes, it would show in the output of phpinfo() ... search for mod_rewrite

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.