NameSilo

Mod rewrite question

SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
Watch

baris22

Established Member
Impact
1
0
•••
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
•••
DomainEasy: flexible LTO options. Close more domain deals with financing.

We're social

Escrow.com
Spaceship
Escrowly
CryptoExchange.com
Domain Recover

NamePros updates

Watched threads: your alert now keeps up with new replies
When you watch a thread, each new reply now updates your alert. Before, you got one alert and then nothing until you read the thread...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back