[TYPO3] How to change index.php to another filename
Peeter Rahuvarm
peeter at kraabus.ee
Thu Jun 5 08:58:44 CEST 2008
Hi again,
Now I've searched typo3 4.2 pure install for 'index.php' and found 455
matches (well some of these were commented out) so I agree, it's not
good idea to change this and it probably occurs in extensions too. At
the same time, I'm afraid to change typo3 directory afterwards because
of absolute url-s - it can happen, when somebody not so 'technically
talented' adds images in WYSIWYG editor etc. (I have had that problem
with Wordpress.)
So what if I change my old index.php to index.html (that has privilege
to be default if exists) and tell the server to treat it as a php file?
Then later I can just rename/delete index.html and voilaa.
I don't want to argue with you but it seems so much easier/safer to
delete one file than move whole site and change template(s). I was just
wondering if there is an option to change typo3's index.php but there's
not :)
Thanks!
Peeter
lesm wrote:
> Peeter,
> As Rob said put Typo3 in its own dir, let's say /typo3 then create a
> subdomain so that you have access as www.typo3.yoursite.com and password
> protect the typo3 dir to avoid sniffers while you develop the new site.
> This way you can also test your .htaccess independently from the
> current site. When ready move the /typo3 content to the root or use a
> symlink.
> If you move typo3 to the root you only need to change the config.baseURL
> in your template.
>
>
> Rob De Vries wrote:
>
>> Peeter Rahuvarm wrote:
>>
>>> Thanks!
>>>
>>> No, my idea is to build my site to my root directory, aside the
>>> existing site (that uses index.php) so I wouldn't have to move
>>> anything later, when my typo3 site is ready.
>>>
>> it is much more easy to place your typo installation in it's own
>> directory and move everything to your root dir when all is finished,
>> then to start "htaccessing" your default index file.
>>
>> almost all typo3 files are relative to the typo3 root dir. moving
>> everything will not break your website (if you haven't used absolute
>> path to your files)
>>
>> Good luck
>> rob
>>
>>
More information about the TYPO3-english
mailing list