Jump to content

Recommended Posts

Posted

I have some problems with my .htaccess file. I've tried placing the .htaccess file in my very root and in the folder I actually want it in, but I keep getting a 500 error. Once I delete the file the problem is gone. This is the piece of code I'm using:

--

Options +FollowSymlinks

RewriteEngine on

RewriteRule ^edit/([^/]+)/([^/]+) /edit.php?cat=$1&id=$2 [NC]

--

 

And I've also tried this:

--

RewriteEngine on

RewriteRule ^edit/([^/]+)/([^/]+) /edit.php?cat=$1&id=$2 [NC]

--

 

Is this just an error in my script, is this functions turned off somehow, or... could anyone help me?

Posted

What do you actually need to do,

 

if you can describe that i can solve the problem for you after this month as i have exams till 29th.

Posted

I want to rewrite '/edit.php?cat=reactions&id=1' and '/edit.php?cat=topics&id=84' to '/edit/reactions/1' and '/edit/topics/84'. But whenever I try achieving this with an .htaccess file, I get an Internal Server Error.

Posted

Error 500 very often mean that there is syntax error in the .htaccess file.

 

First thing I recommend you to check is the way you are saving this file. Use pure ascii only, do NOT save it using UTF-8 or Unicode etc., non-ascii characters such as in example BOM (byte order mark) may result with syntax error.

 

 

After you'll resolve your issue with error 500, remember that when being on a virtual host you have to provide RewriteBase when using mod_rewrite.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...