X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   https://www.glassesshop.net how to remove home.php (https://forum.x-cart.com/showthread.php?t=77167)

Eyeglasses Expert 09-13-2019 04:24 PM

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.

Eyeglasses Expert 09-17-2019 12:53 PM

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 ?

PhilJ 09-18-2019 01:09 AM

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.

sinobest 09-19-2019 06:03 AM

Re: https://www.glassesshop.net how to remove home.php
 
Great, I have removed home.php for www.glassesshop.net

sinobest 09-19-2019 05:55 PM

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?


All times are GMT -8. The time now is 12:10 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.