[TYPO3-install] Typo3 with simulateStatic in a subdirectory

Matthew Manderson matthew at manderson.co.uk
Sat Sep 9 17:58:57 CEST 2006


Always remember the question is rarely 'can' it be done with TYPO3 but how.

You pose a question whether TYPO3 is a 'serious cms' LOL - clearly you have
not had much experience with TYPO3. In my mind yes TYPO3 is one of the
serious cms's! But of course I'd love to read through your spec as to what
actually constitutes a serious CMS. Please do reveal.

Anyway back to your requirement, it seems clear to me that you should leave
typo3 in your /cms folder and use .htaccess to url rewrite to that folder.
This is not a TYPO3 issue so look elsewhere to get it solved.

If you need to protect your cms from external baddies the simplest is to:

i) password protect your /cms/typo3/ directory
ii) Check you file permissions carefully ie no 777 rubbish.
and iii) re-enable the die command in your /cms/typo3/install/index.php file

Finally if you have a straightforward enough site, why not use .httrack to
offline copy it and just ftp it to another webserver - this way your TYPO3
backend is somewhere else. Presumably on your own local PC would be pretty
fast to work on and just .httrack and ftp/rsync the files to your web host.

All ideas are fun
Enjoy!


Levente J. Dobszay wrote:

> Hi Michael,
> 
> Maybe you didn't understand my question. I do not want to have Typo3 to be
> installed in my doc root with a couple of Typo3 subdirectories. This would
> be a very ugly kind of installation. I want to have clean directory
> structure and I want to hide my cms directory from my visitors. This
> should be standard for any serious cms. I hope Typo3 is such a cms. Please
> correct me, if I'm wrong.
> 
> From the sunny side of Switzerland
> Levente
> 
> 
> "Michael Stucki" <michael at typo3.org> wrote in message
> news:mailman.1.1157356750.19989.typo3-install at lists.netfielders.de...
>> Hi Levente,
>>
>>> I have installed Typo3 in a subdirectory of my web root (htdocs/cms/).
>>> simulateStatic works quite fine, accessing my site calling
>>> http://www.mySite.com/cms/.
>>>
>>> Now I would like to make my website only accessible calling
>>> http://www.mySite.com/. All invalid URLs (404) as well as any direct
>>> call of http://www.mySite.com/cms/... (except calling the backend)
>>> should be redirected to http://www.mySite.com/. I.e. no visitor should
>>> ever see in which subdirectory my typo3 is installed (due to security
>>> reasons).
>>>
>>> What exactly has to be defined in which .htaccess file
>>> (/htdocs/.htaccess and /htdocs/cms/.htaccess) in order to make this work
>>> as required?
>>
>> Nothing. You can simply move all files to the parent directory. That's
>> simple, isn't it?
>>
>> - michael
>> --
>> Use a newsreader! Check out
>> http://typo3.org/community/mailing-lists/use-a-news-reader/




More information about the TYPO3-install mailing list