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

Mod rewrite question

SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
Watch

baris22

Established Member
Impact
1
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Code:
RewriteRule ^([A-z0-9]+)/([A-z0-9]+)-([0-9]+)\.htm$ /search.php?q=$1&s=$3 [L]
Will do it but it ignores the second parameter so http://www.site.com/something/foo-1.htm and http://www.site.com/something/bar-1.htm will redirect to the same place. If you don't need the second xxxxx you can also use:

Code:
RewriteRule ^([A-z0-9]+)/([0-9]+)\.htm$ /search.php?q=$1&s=$2 [L]
This will make the redirect look like http://www.site.com/xxxxx/1.htm
 
0
Close
DomainEasy: flexible LTO options. Close more domain deals with financing.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Each character of a domain name in its own box, with how to type one of them
Bookmarks: see bookmarks without a label
You can now show only the bookmarks you have not labeled. Open the label filter in the Bookmarks tab of your account menu, or on your...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back