Jump to content

Mod Rewrite Used to Work - Now Fails


unemployment

Recommended Posts

I actually sort of fixed it.  Mod Rewrite wasn't enabled on my server so I enabled it.  Then I had to configure the sites-available / sites-enabled config files in the apache folder.  However, I am still having issues.  For some reason my blog mod rewrite isn't working. 

 

RewriteRule ^blog/([0-9]+)/(.*)$ /blog.php?post_id=$1&title=$2 [L]

 

When I visit my blog page and write:

 

echo $_GET['post_id']; die();

 

Nothing is returned.  In order for a user to go to an individual blog page I need that id returned.  Any idea as to what I am missing?

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.