NameSilo

.htaccess Help

Spaceship Spaceship
Watch

Whogister

Established Member
Impact
118
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?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
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?


Try this:

Code:
RewriteEngine on
RewriteRule ^blog(.*)\.php$ blog.php?id=$1
 
0
•••
Try this:

Code:
RewriteEngine on
RewriteRule ^blog(.*)\.php$ blog.php?id=$1
You can also replace (.*) with ([0-9]+) to make the rewrite only happen for numerical values.
 
0
•••
Dynadot — .com Registration $8.99Dynadot — .com Registration $8.99

We're social

Unstoppable Domains
Domain Recover
NameMaxi - Your Domain Has Buyers
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back