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)
-   -   home.php to index.php (https://forum.x-cart.com/showthread.php?t=32585)

Learner 06-29-2009 04:31 AM

Re: home.php to index.php
 
Quote:

Originally Posted by balinor
If you have DirectoryIndex home.php in your htaccess file and type in yourdomain.com, it should just show yourdomain.com without the home.php.


Balinor,
I have changed my htaccess file from DirectoryIndex index.html index.php to DirectoryIndex home.php but again my site redirects to www.mydomain.com/home.php

I need my site redirects to mydomain.com only.

Can you guide me? Thank you.

sinobest 11-25-2009 04:01 PM

Re: home.php to index.php
 
any good idea?

Jon 11-25-2009 07:53 PM

Re: home.php to index.php
 
Here's a tutorial to move your site to root and maintain search engine rankings: Move X-Cart To Root.

If you don't move your site to root, then at least set a home.php directory index in your subfolder .htaccess file do a 301 redirect from root to your subfolder by putting an index.php file in root with the following content (replace /shop/ with your folder):

Code:

<?php
header('Location: /shop/',TRUE,301);
?>


Our CDSEO program includes a home.php directory index and to consolidate pages it also does a 301 redirect to / when http://www.example.com/home.php is accessed directly.

If you are running Zeus then you can set your directory index in your control panel.

Jon 11-25-2009 07:54 PM

Re: home.php to index.php
 
You should also specify if your domain uses www. or not, here's another tutorial: http://www.x-cart-seo.com/x-cart-seo-blog/www-seo-pick-a-domain-preference/


All times are GMT -8. The time now is 02:23 PM.

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