View Single Post
  #3  
Old 07-29-2007, 09:51 PM
 
luxor luxor is offline
 

Senior Member
  
Join Date: Apr 2007
Posts: 120
 

Default 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 RewriteRule ^home\.php$ index.php


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
Reply With Quote