Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

https://www.glassesshop.net how to remove home.php

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-13-2019, 04:24 PM
 
Eyeglasses Expert Eyeglasses Expert is offline
 

eXpert
  
Join Date: May 2010
Posts: 307
 

Default https://www.glassesshop.net how to remove home.php

i think it is really not good to add home.php at the end of https://www.glassesshop.net
how to remove it, please?


tks.
Reply With Quote
  #2  
Old 09-17-2019, 12:53 PM
 
Eyeglasses Expert Eyeglasses Expert is offline
 

eXpert
  
Join Date: May 2010
Posts: 307
 

Default Re: https://www.glassesshop.net how to remove home.php

Today i found google indexed www.glassesshop.net/home.php , how can i tell to index www.glassesshop.net instead of home.php? Can i jump home.php to www.glassesshop.net ?
Reply With Quote
  #3  
Old 09-18-2019, 01:09 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: https://www.glassesshop.net how to remove home.php

Code:
if ($_SERVER['REQUEST_URI'] == $xcart_web_dir.'/home.php') { header ('HTTP/1.1 301 Moved Permanently'); header ('Location: //'.$xcart_https_host.$xcart_web_dir.'/'); }
^ Put that in /auth.php at the end, just before
Code:
?>
Also in the XML sitemap module settings, ensure the setting...
Quote:
Use root store page (http://example.com/) instead of home page (http://example.com/home.php) in the sitemap file.
...is checked.
__________________
xcartmods.co.uk
Reply With Quote

The following 3 users thank PhilJ for this useful post:
elmirage001 (09-18-2019), ITVV (09-19-2019), sinobest (09-19-2019)
  #4  
Old 09-19-2019, 06:03 AM
 
sinobest sinobest is offline
 

X-Adept
  
Join Date: Nov 2009
Posts: 462
 

Default Re: https://www.glassesshop.net how to remove home.php

Great, I have removed home.php for www.glassesshop.net
__________________
X-Cart Version: 4.7.12 GOLD
www.cheapglasses123.com prescription glasses online at discounted prices.
prescriptionglassesusa.com
www.loupesusa.com X-Cart Version: 4.7.11 GOLD PLUS
Reply With Quote
  #5  
Old 09-19-2019, 05:55 PM
 
sinobest sinobest is offline
 

X-Adept
  
Join Date: Nov 2009
Posts: 462
 

Default Re: https://www.glassesshop.net how to remove home.php

Another question, how to change

<link rel="canonical" href="https://www.glassesshop.net/home.php" />
to
<link rel="canonical" href="https://www.glassesshop.net" />
pls?
__________________
X-Cart Version: 4.7.12 GOLD
www.cheapglasses123.com prescription glasses online at discounted prices.
prescriptionglassesusa.com
www.loupesusa.com X-Cart Version: 4.7.11 GOLD PLUS
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 09:28 PM.

   

 
X-Cart forums © 2001-2020