Whogister Established Member ★ 15 ★ Impact 118 Oct 15, 2009 567 views 2 replies #1 I am trying to get my blog links: Code: blog.php?id=12345 To work using: Code: blog12345.php I tried this but it gives me an 500 error. Code: Options +FollowSymLinks RewriteEngine on RewriteRule blog(.*)\.php$ /blog.php?id=$1 Anyone have any ideas how to get this to work?
I am trying to get my blog links: Code: blog.php?id=12345 To work using: Code: blog12345.php I tried this but it gives me an 500 error. Code: Options +FollowSymLinks RewriteEngine on RewriteRule blog(.*)\.php$ /blog.php?id=$1 Anyone have any ideas how to get this to work?
scriptpal Established Member ★ 15 ★ Impact 1 Oct 15, 2009 #2 dreamscape said: I am trying to get my blog links: Code: blog.php?id=12345 To work using: Code: blog12345.php I tried this but it gives me an 500 error. Code: Options +FollowSymLinks RewriteEngine on RewriteRule blog(.*)\.php$ /blog.php?id=$1 Anyone have any ideas how to get this to work? Click to expand... Try this: Code: RewriteEngine on RewriteRule ^blog(.*)\.php$ blog.php?id=$1
dreamscape said: I am trying to get my blog links: Code: blog.php?id=12345 To work using: Code: blog12345.php I tried this but it gives me an 500 error. Code: Options +FollowSymLinks RewriteEngine on RewriteRule blog(.*)\.php$ /blog.php?id=$1 Anyone have any ideas how to get this to work? Click to expand... Try this: Code: RewriteEngine on RewriteRule ^blog(.*)\.php$ blog.php?id=$1
Drop and Cover Established Member ★ 15 ★ Impact 0 Oct 15, 2009 #3 scriptpal said: Try this: Code: RewriteEngine on RewriteRule ^blog(.*)\.php$ blog.php?id=$1 Click to expand... You can also replace (.*) with ([0-9]+) to make the rewrite only happen for numerical values.
scriptpal said: Try this: Code: RewriteEngine on RewriteRule ^blog(.*)\.php$ blog.php?id=$1 Click to expand... You can also replace (.*) with ([0-9]+) to make the rewrite only happen for numerical values.