| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
change home.php to index.php | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I want my cart to be accessed by example.com/index.php, instead of home.php.
I can see the breadcrumb for Store Name links to home.php, how would you change that to index.php instead? Also is there anywhere else in the store that will send you to home.php that will have to be modified?
__________________
v4.1.8 GOLD |
|||||||
#2
|
|||||||
|
|||||||
![]() You really can't do that, it is hard coded everywhere in the php files. You should always link your site by just the domain name anyway, so no one will see home.php until they get into the store, and even then you should have a url rewrite mod in place. So no one will ever actually see home.php.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
![]() I have copied home.php code to index.php, which loads the site fine when I access example.com/index.php .
Along with : Code:
in .htaccess will get example.com to load the site correctly. or you can not even place the code from home.php into index.php and place this in .htaccess: Code:
will allow you to load www.example.com but really be using home.php. The problem lies in the home.php links throughout the source code. I am not sure there is a server configuration possible to change to index.php in the program without taking every reference out of the source. Now for mod_rewrite I placed : Code:
I ran grep on x-cart dir, and there are many files to with home.php written out, with mod_rewrite (best to my knowledge of it), it is useful to make rules in .htaccess based in conjunction with dynamic url printing in the source code. So will I have to change home.php in every single file to index.php anyway I guess?
__________________
v4.1.8 GOLD |
|||||||
#4
|
|||||||||
|
|||||||||
![]() We provide an SEO Links mod that will rewrite all references of http://www.yourdomain.com/home.php to http://www.yourdomain.com/ which is optimal for seo.
Mod details can be viewed at: http://www.websitecm.com/x-cart-mods/x-cart-seo-links.html |
|||||||||
#5
|
|||||||
|
|||||||
![]() Jon: Your mod changes home.php urls to what ? and is it automatically done with the default install?
__________________
v4.1.8 GOLD |
|||||||
#6
|
|||||||||
|
|||||||||
![]() It changes home.php to / and is automatically done. You then put "DirectoryIndex home.php" in an .htaccess file and your site loads directly without ever calling home.php directory.
|
|||||||||
|
|||
X-Cart forums © 2001-2020
|