Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
 All Forums
 Technical
 ASP (Windows server) versions
 Change page name without breaking links
Author « Topic »  

janhall_us1
Ecommerce Template Expert

USA
551 Posts

Pre-sales questions only
(More Details...)

Posted - 06/04/2018 :  11:40:28  
I want to begin the work to convert to extensionless URLs but I have a dash and a pipe as part of my product names. If I remove those, the indexed page name will change. How to I redirect old page name to new page name so I don't have broken links on Pinterest, etc.

Thank you,
Jan

dbdave
ECT Moderator

USA
10468 Posts

Posted - 06/04/2018 :  11:57:23  
I am sure there are several ways to do this, but if you you are on a windows server, you should be able to do it in the web.config file.
Here is how I do it

(If you already have rewrite rules in your web.config file, just add the new rules in)


<rewrite>
<rules>
<rule name="some unique name here" stopProcessing="true">
<match url="^proddetail.asp?$" />
<conditions>
<add input="{QUERY_STRING}" pattern="^prod=old-prod-id$" />
</conditions>
<action type="Redirect" url="proddetail.asp?prod=new-prod-id" appendQueryString="false" redirectType="Permanent" />
</rule>
</rules>
</rewrite>

janhall_us1
Ecommerce Template Expert

USA
551 Posts

Pre-sales questions only
(More Details...)

Posted - 06/04/2018 :  12:44:56  
Thanks so much for the quick answer dbdave. This will come in handy when I need to rename a page or two, but I have 1,800 products.

Does anyone else know a bulk way to change the pages without breaking links?
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.02 seconds. Snitz Forums 2000