Dynadot .com transfer sale, only $10.12 with coupon code DYNA12, available while supplies last, ends October 31, 2026.

Changing URL's to be SE friendly

Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
Watch

combs84

Established Member
Impact
23
I own www.sportstix.us I am havig a new ticket site created like it but with a much better custom design rather than a template.

The thing i hate tho is how the destinations go to http://sportstix.us/ResultsGeneral.aspx?stype=0&kwds=Detroit+Pistons
or
http://sportstix.us/ResultsEvent.aspx?event=Christina Aguilera

instead of something like:

http://www.sportstix.com/tickets/detroit-pistons-tickets.htm

Is there a way to do this quickly, affordably, and easily? Anybody want to do it at a cost? Or is it easy for me to do? What do I change?
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
0
Close
I concur that mod_rewrite is the most effective way to go.
 
0
Close
Code:
RewriteEngine On
RewriteRule tickets/detroit-pistons-ticket.htm ResultsGeneral.aspx?stype=0&kwds=Detroit+Pistons
 
0
Close
A much better way would be:

Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^tickets/(.*)\.html$ ResultsGeneral.aspx?stype=0&kwds=$1 [L]
</IfModule>
 
0
Close
Where do I put these codes?
 
0
Close
In the home directory of your site, or wherever the files are located create a file called .htaccess and insert the stuff i've posted into it.
 
0
Close
Combs84, they all assumed you were using Apache as your webserver. Which you are not.

If you see .asp you can assume its a IIS webserver. It's easily verified by seeing the headers sent by the server - 'Microsoft-IIS/6.0' (web developer toolbar or firebug, anyone?).

Read the comments (and to little extent the original post) at:
http://ask-leo.com/does_iis_support_url_rewriting.html

In short: IIS is capable if you have the access, patience and energy to do some extra work.
 
0
Close
CatchedCatched

We're social

Escrow.com
Spaceship
CryptoExchange.com
Domain Recover

NamePros updates

Quick replies: search, your most used replies, and more on every post
Quick replies are easier to find and use now. The quick reply menu has a search box. Type a few letters to find the reply you want. A...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back