[TYPO3] .htaccess & SimulateStaticDocuments creates infinite redirection loops
Christopher
bedlamhotel at gmail.com
Tue Jun 13 19:36:37 CEST 2006
Hello,
On 6/13/06, Watkins: Seasons For Success <lynne at seasonsforsuccess.com> wrote:
> Here's my problem in a nutshell: The standard Typo3 .htaccess file is
> suddenly causing a redirection loop with my Typo3 root page. The root page
> redirects itself to itself to itself, etc....until it eventually times
> itself out from exhaustion. ;-) If I disable the .htaccess file, the main
> page loads and everything *looks* fine, even the link paths. But all the
> links (those pointing to Typo3 pages) just get redirected back to the root
> page. If I disable SimulateStaticDocuments, the resulting links work fine.
> If I leave SimulateStaticDocuments enabled and just add the line,
> "config.simulateStaticDocuments = PATH_INFO", the links also work fine. But
> I *really really like* the .html links created by SSD instead and would like
> them back!
<big snip>
Nicely asked question...The only thing missing is the .htaccess file,
but since you've used the default, we can probably figure that out.
The way your site is set up is slightly odd though; why do you have
the redirect from / to /index/ ? I'm about positive that's the um
'root' of your problem if you'll forgive the pun. There are several
approaches you can take (though they're all about equivalent):
1. Change the .htaccess file so it's rewriting inside the /index/
directory; I suspect this is where the loop comes from: if .htaccess
redirects all requests for non-existent directories and files to
/index.php and the root of the site redirects everything to /index/
and .htaccess redirects that back to /index.php...and so on...
2. Move the site out of /index/ to / This may, in the long run, have
some seo benefits for you as well.
3. Have your host point requests for your domain to the /index/ directory.
I'd opt for 2. The usual cautions about backing things up and
carefully documenting the steps you take so that you can un-do what
you've done apply here...
-Christopher
More information about the TYPO3-english
mailing list