View Single Post
Old 01-16-2012, 09:36 AM   PM User | #1
tomharto
Regular Coder

 
Join Date: Jul 2010
Location: Sheffield
Posts: 794
Thanks: 91
Thanked 18 Times in 18 Posts
tomharto is on a distinguished road
Simple rewrite problem

I need to make a simple rewrite apache rule so anything after #! in the URL gets redirected to index.php?page={TheString}

I tried this

RewriteEngine on
RewriteRule ^/([0-9][0-9])/$ http://localhost/221New/test.php?page=$1

but i get a 500 server error, can anyone see why or would i need to post more code? thats all i currently have in my htaccess file

Last edited by tomharto; 01-16-2012 at 12:02 PM..
tomharto is offline   Reply With Quote