[TYPO3-UG Dutch] htaccess password geeft 404 error

Ronald Wopereis woepwoep at gmail.com
Sun Jun 20 09:31:32 CEST 2010


op diverse sites wordt gezegd dat je ook AuthGroupFile /dev/null nog moet
toevoegen.
maakt het verschil als je die regel erbij zet ?
R

Op 19 juni 2010 16:48 schreef Muriel le Pair <typo3 at strangefruit.nl> het
volgende:

> Hoi Michiel,
>
> Op 19-6-2010 11:01, Michiel Roos [netcreators] schreef:
>
>  Zit je TYPO3 site echt in de site root, of in een submap hiervan? In het
>> tweede geval zou bovenstaande conditie namelijk niet werken. Dan moet ie
>> worden: ^submap/(typo3/|t3lib/| . . . etc.
>>
>
> TYPO3 staat gewoon in de root dir.
>
>
>  Je geeft aan dat de password prompt wel verschijnt als je de .htaccess
>> in je site root uitschakelt. Kun je dan ook inloggen? En daarna het
>> bestand zien?
>>
>
> Ja. Sterker nog als ik de basic authentication toevoeg aan het htaccess
> bestand in de root dir dan werkt de password prompt gewoon ..alleen is dat
> uiteraard niet de bedoeling want dan is de gehele site niet meer zichtbaar
> ;-)
>
>
>  Dan is er iets mis met de standaard TYPO3 .htaccess.
>>
>
> Ja dat vermoed ik ook. Ik heb nog eens even zitten Googlen. WordPress
> gebruikt bijna exact hetzelfde .htaccess bestand en heeft last van hetzelfde
> probleem.
> De oplossing die ze daar geven:
> http://wiki.dreamhost.com/Password-protecting_directories
>
>
> <IfModule mod_rewrite.c>
> RewriteEngine On
> RewriteBase /
> RewriteCond %{REQUEST_URI} ^/(failed_auth\.html).*$ [NC]
> RewriteRule . - [L]
> </IfModule>
>
> # BEGIN WordPress
>
> <IfModule mod_rewrite.c>
> RewriteEngine On
> RewriteBase /
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
>
> RewriteRule . /index.php [L]
> </IfModule>
>
> # END WordPress
>
> Werkt alleen niet..
>
>
>  Post
>> ff de inhoud hiervan of vervang de inhoud door:
>>
>
> .htaccess in root dir:
>
> # Enable URL rewriting
> RewriteEngine On
> RewriteBase /
>
>
> RewriteRule
> ^(typo3/|t3lib/|tslib/|fileadmin/|typo3conf/|typo3temp/|uploads/|showpic\.php|favicon\.ico)
> - [L]
>
> RewriteRule ^typo3$ typo3/index_re.php [L]
>
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteCond %{REQUEST_FILENAME} !-l
>
> RewriteRule .* index.php [L]
>
>
> .htaccess in /fileadmin/subdir:
>
> AuthType Basic
> AuthName "Restricted Files"
> Require valid-user
> AuthUserFile /pad/naar/bestand/.htpasswd
>
>
>
>
>> <IfModule mod_rewrite.c>
>> RewriteEngine On
>>
>> # Do not rewrite static resources
>> RewriteCond %{REQUEST_FILENAME} -f [OR]
>> RewriteCond %{REQUEST_FILENAME} -d [OR]
>> RewriteCond %{REQUEST_FILENAME} -l
>> RewriteRule .* - [L]
>>
>> # Rewrite the rest to index.php
>> RewriteRule .* /index.php [L]
>> </IfModule>
>>
>
> Geeft ook een 404 error.
>
>
>
> --
> met vriendelijke groet,
>
> Muriel le Pair
> _______________________________________________
> TYPO3-UG-Dutch mailing list
> TYPO3-UG-Dutch at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-ug-dutch
>



-- 
Come and join me on Ecademy Club "Follow Me - learn how to become the Warren
Buffet of the Atttention Economy"
http://www.ecademy.com/account.php?op=signup&c=5591&xref=69061


More information about the TYPO3-UG-Dutch mailing list