[TYPO3] 404 redirect and .htaccess

janus76 janus76uk at gmail.com
Fri Sep 12 18:45:33 CEST 2008


I was wondering if anyone can help with this:--
here is my setup
Typo3 4.2.1

I have a site setup in a sub-directory on the web root call my_site:-
/-
  |
  my_site
  |
  Other Sites

I have setup a page not found page with id=10

configuring localconf.php with
$TYPO3_CONF_VARS['FE']['pageNotFound_handling'] =
'/my_site/index.php?id=10';
$TYPO3_CONF_VARS['FE']['pageNotFound_handling_statheader'] = 'HTTP/1.0 404
Not Found';

this works fine.
However i wish to protect my_site with a simple .htaccess file i.e

AuthName "My Site protected"
AuthType Basic
AuthUserFile /somewhere on the server/.htpasswd
Require user me

By doing this I now get a 401 authorization required page.

is there anyway around this?
I am missing something in the configuration to set the pageNotFound_handling
variable to a relative url?

any help on this would be appreciated


Thanks

Janus
-- 
View this message in context: http://www.nabble.com/404-redirect-and-.htaccess-tp19459873p19459873.html
Sent from the TYPO3 English mailing list archive at Nabble.com.



More information about the TYPO3-english mailing list