Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 VPCart 9 Questions
 Redirect shopping folder to root folder
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Alex123
VP-CART Super User

USA
223 Posts

Posted - September 18 2019 :  16:50:51  Show Profile  Reply with Quote
Hi guys,

One of my customer installed VPCart in shopping folder and access the website like example.com/shopping. He wants to access the website with just using the domain name for seo purpose. What would be the best solution?

Any help or suggestion.

Thank you !

support
Administrator

4679 Posts

Posted - September 18 2019 :  17:18:42  Show Profile  Visit support's Homepage  Reply with Quote
Hello,

Hope your hosting provider is having microsoft URL rewrite module installed in IIS. Please refer

https://www.microsoft.com/en-in/download/details.aspx?id=7435

If so please add the following rewrite rules in web.config file under root folder of your website. So when someone access http://example.com/shopping in browser it will be redirected to http://example.com

<configuration>
<system.webServer>
<httpErrors errorMode="Detailed"/>
<rewrite><rules>
<rule name="RedirectAllToRoot">
<match url="shopping/(.*)" />
<action type="Redirect" url="{R:1}" redirectType="Permanent" />
</rule>
</rules></rewrite>
</system.webServer>
</configuration>

Thank you,

VPCart Customer Care Team
www.vpcart.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00