Rernaming domain.com/index.php with .htaccess?

Hi folks



I’m wanting to rename the doman.com/index.php to something a little more descriptive



eg domain.com/webshop.php so that when vistors type in domain.com it uses webshop.php instead of index.php (which is just the index.php renamed)



I’ve read up on the entries for .htaccess but with v2 it seems a little different then the other posts i’ve looked at



can i do the following and keep the site functioning properly?



current .htaccess

RewriteBase /<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteRule . index.php?sef_rewrite=1 [L,QSA]<br />
<br />
RewriteCond %{REQUEST_FILENAME} .*\/catalog\/.*<br />
RewriteCond %{REQUEST_FILENAME} -d<br />
RewriteCond %{REQUEST_FILENAME}/index.html !-f<br />
RewriteRule . index.php?sef_rewrite=1 [L,QSA]
```<br />
<br />
new .htaccess<br />
```php
RewriteBase /<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteRule . [I][B]webshop[/B][/I].php?sef_rewrite=1 [L,QSA]<br />
<br />
RewriteCond %{REQUEST_FILENAME} .*\/catalog\/.*<br />
RewriteCond %{REQUEST_FILENAME} -d<br />
RewriteCond %{REQUEST_FILENAME}/index.html !-f<br />
RewriteRule . [I][B]webshop[/B][/I].php?sef_rewrite=1 [L,QSA]
```<br />
<br />
and then rename index.php to webshop.php <br />
<br />
do I have to update anything within the skins folder too?<br />
eg index.tpl<br />
<br />
I also found a .htaccess in the skins folder - should any edits be placed in there too?

read this posting on how to do this:



[url]http://forum.cs-cart.com/showthread.php?t=4689&highlight=renaming+admin.php[/url]



the principle is the same for index.php



Thanks - Sno

not sure if I follow how this is the same as renaming admin.php



surely I need to update the .htaccess and then refer to the new filename for index.php in the required files?



searching for references to index.php i get about 28 results, but there are many other index.php files - how do I know which index.php is being referred to?



Have tried the above, only managing to break the site…

You should be able to change the filenames in config.local.php


// Names of index files for administrative and customer areas
$config['admin_index'] = 'admin.php';
$config['customer_index'] = 'index.php';


You also have to change the .htaccess file and the ‘top menu’ links which is in admin → design → top menu, edit each link they are hard coded.



You’ll also have to add the new index.php name to your apache DirectoryIndex.



DirectoryIndex index.html index.php NEW_INDEX.php