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

home.php to index.php

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #21  
Old 06-29-2009, 04:31 AM
 
Learner Learner is offline
 

X-Adept
  
Join Date: Dec 2008
Posts: 807
 

Default 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.
__________________
4.6.1 Platinum


Reply With Quote
  #22  
Old 11-25-2009, 04:01 PM
 
sinobest sinobest is offline
 

X-Adept
  
Join Date: Nov 2009
Posts: 462
 

Default Re: home.php to index.php

any good idea?
__________________
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
  #23  
Old 11-25-2009, 07:53 PM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default 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.
Reply With Quote
  #24  
Old 11-25-2009, 07:54 PM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default 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/
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 11:48 AM.

   

 
X-Cart forums © 2001-2020