NameSilo

Changing URL's to be SE friendly

Spaceship Spaceship
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
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable Domains โ€” AI StorefrontUnstoppable Domains โ€” AI Storefront
0
•••
I concur that mod_rewrite is the most effective way to go.
 
0
•••
Code:
RewriteEngine On
RewriteRule tickets/detroit-pistons-ticket.htm ResultsGeneral.aspx?stype=0&kwds=Detroit+Pistons
 
0
•••
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
•••
Where do I put these codes?
 
0
•••
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
•••
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
•••
Dynadot โ€” .com TransferDynadot โ€” .com Transfer
Domain Recover
DomainEasy โ€” Zero Commission
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back