mark00 Posted November 5, 2012 Posted November 5, 2012 What is the proper way to return the home page URL? I'm aware of tep_href_link(FILENAME_DEFAULT) , but I don't want the index.php appended at the end and preferably would like the URL returned either http or https depending on what the user is currently on. Thanks!
♥GLWalker Posted November 5, 2012 Posted November 5, 2012 You can use HTTP_SERVER if your instalation is setup in the root. Another thing that you may want to consider is to install Ultimate Seo Urls 5 PRO and use the "Force www.mysite.com/ when www.mysite.com/index.php" option, http://addons.oscommerce.com/info/7704 You really dont want your homepage to use https though, theres no need for SSL on that page and "may" result in duplicate content Place this code in your shops root .htaccess - changing http:/yourdomain as appropriate: # No index SSL RewriteCond %{SERVER_PORT} ^443$ RewriteRule ^index.php http://yourdomain.com/index.php [R=301,L] Follow the community build: BS3 to osCommerce Responsive from the Get Go! Check out the new construction: Admin Gone to Total BS!
Jack_mcs Posted November 6, 2012 Posted November 6, 2012 You can also install Ultimate SEO V2.2d and change the link code to tep_href_link('/'... Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
Recommended Posts
Archived
This topic is now archived and is closed to further replies.