Print Page | Close Window

non www to www redirect

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Search Engine Optimization
Forum Description: Talk about ways to optimize your ProductCart store for search engines
URL: https://forum.productcart.com/forum_posts.asp?TID=4265
Printed Date: 03-July-2024 at 9:54am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: non www to www redirect
Posted By: sunny155
Subject: non www to www redirect
Date Posted: 20-January-2011 at 5:48pm
I am using ver 3.51 of PC. I want to redirect the non-www version to www version....how i can do it?

ex - example.com to www.example.com
I don't have access to IIS or Plesk.



Replies:
Posted By: cognecy
Date Posted: 20-January-2011 at 5:56pm
Take a look at this page:
 
http://wiki.earlyimpact.com/developers/timeout-issues?s%5b%5d=session - http://wiki.earlyimpact.com/developers/timeout-issues?s[]=session
 
Scroll down to the section that is titled "Redirecting customers to WWW".   There are  complete instructions on how to force www in your URL's
 
 


-------------
Mark Shipp
Cognecy Solutions, LLC
Hosting/Design/Customization/Database Migration
www.cognecy.com
www.cognecy.co.uk


Posted By: sunny155
Date Posted: 20-January-2011 at 6:15pm
Thanks that worked nicely!

but one issue though...its adding up /default.asp after the redirect..
How to make it show only the homepage without /default.asp?

Ex- upon entering http://example.com
its showing - www.example.com/default.asp
I want it only www.example.com



Posted By: cognecy
Date Posted: 21-January-2011 at 1:52am
Please note that whether or not the /default.asp displays in your URL or not is really inconsequential ... it just does not matter with regard to anything web related (e.g. rankings, search engines/SEO, store maps, store sales, etc.).
 
Now with that said, this feature of not having that portion of the URL show in the address bar is really more a function of how your indexes are set up in the hosting environment.  Some hosts have default indexes and allow you to set up your own and others do not.  If you have established an index page to include "default.asp" then you can safely only reference [example.com] and it will display the content of the default page without actually showing it in the Address bar.  Now, if you hard code your links to [example.com/default.asp], then it will Always show the [/default.asp] portion of the URL because that is what you are telling it to do.   (I hope that make sense)
 


-------------
Mark Shipp
Cognecy Solutions, LLC
Hosting/Design/Customization/Database Migration
www.cognecy.com
www.cognecy.co.uk


Posted By: sunny155
Date Posted: 21-January-2011 at 4:40am
Thanks for info about SEO.

But i still have a question when i open the site http://www.example.com it shows it exactly like http://www.example.com but when i open ONLY example.com it opens up like http://www.example.com/Default.asp

Why it doesn't show /default.asp when I open the www version and why it only appears (after redirect) when i open the non-www version?

I want it to appear same www.example.com and not www.example.com/default.asp (after redirect).


Posted By: Greg Dinger
Date Posted: 21-January-2011 at 10:28am
If your host has ISAPI_Rewrite on the server, they can set rules to do this. 
http://www.helicontech.com - www.helicontech.com
 
Similarly if the site is on IIS7, and if they will install URL Rewrite (free), simple rules allow this to be handled:
http://www.iis.net/download/urlrewrite - http://www.iis.net/download/urlrewrite


-------------
GreyBeard Design Group

Certified ProductCart Developer

Web Design/Development/Hosting

http://tinyurl.com/5c8t4t" rel="nofollow - Add-Ons & Custom Code |



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net