Dynadot โ€” .com Transfer

Mod rewrite question

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
•••
Appraise.net
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomainEasy โ€” Payment Flexibility
DomDB
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back