![]() |
change home.php to index.php
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? |
Re: change home.php to index.php
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.
|
Re: change home.php to index.php
I have copied home.php code to index.php, which loads the site fine when I access example.com/index.php .
Along with : Code:
DirectoryIndex index.php 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:
DirectoryIndex home.php 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:
RewriteEngine on 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? |
Re: change home.php to index.php
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 |
Re: change home.php to index.php
Jon: Your mod changes home.php urls to what ? and is it automatically done with the default install?
|
Re: change home.php to index.php
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.
|
All times are GMT -8. The time now is 11:06 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.