简体   繁体   中英

htaccess / Typo3 in subfolder - exclude other folders in root

I don't really understand the structur of htaccess but I'll try to explain the problem the best I can.

I have a Typo3 page inside a folder in my _root directory named "typo" and inside is the htaccess that defines the realurl navigation. If I check the site with "www.mypage.com/typo" everything looks and works fine.

Now the thing is, that inside the _root there are other subfolder with webcontent and once I change the domain directory (so that the Typo3 page is the main index-page) I can't open the other websites inside the folders anymore.

for example: "www.mypage.com/otherwebstuff" just gives me a Typo3 error.

I googled for the last hour but wasn't successful. Is there no simple way to tell htaccess to simply ignore my other folders?

This is my current htacess file inside my Typo3 directory:

RewriteEngine On

#RewriteRule ^/test/(typo3|typo3temp|typo3conf|t3lib|tslib|fileadmin|uploads|showpic\.php)/ - [L]
#RewriteRule ^/test/typo3$ /test/typo3/index.php [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l

RewriteRule .* index.php

I highly recommend mapping a subdomain to the directory TYPO3 lives in:

typo.mypage.com -> mypage.com/typo

You will run into way less problems and conflicts.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM