Dynadot Aftermarket: discover domain gems worth investing in. Visit our aftermarket.

.htaccess Help

SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
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
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
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
Close
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
Close
DomainEasy: white label portfolios are live. Enable yours.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Filters for activity feeds
Your news feed, Latest activity, and the activity tab on profiles now have filter buttons: All, Posts, Quick replies, and Other. Your...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back