21280 Posts in 5729 Topics by 2600 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 658 Views |
-
Redirect loop when visiting level 3 pages

22 November 2010 at 2:51am Last edited: 22 November 2010 2:51am
I'm starting to panic a bit, as I've just copied a SilverStripe site across to the client's hosting account, due to go live tomorrow morning, but a bug has appeared that didn't happen on my staging account:
Basically, upon trying to access a page on the site which is on the 3rd level, for example:
www.example.com/page1/page2/page3
It goes into a constant redirect loop:
www.example.com/page1/page1/page1/page1/page1/page1/page1/page1/page1/page2/page3
until the browser catches it and kills it with a redirect loop error.If I turn off nested pages it works fine. I've got no redirects setup in the code, I've tried clearing the cache and flushing etc, but I can't get rid of it!
Any ideas?
Many Thanks
James -
Re: Redirect loop when visiting level 3 pages

22 November 2010 at 5:05am
This is really starting to baffle me now:
- Tried a fresh SS install, created a level 3 page, redirect loop still appears
- Removed .htaccess file and accessed a level 3 page using index.php, loop still happens!
- Tried creating 3 sub folders on the server, visited the 3rd folder, redirect loop did NOT occur.
This tells me that this is caused by a setting on the server that SilverStripe doesn't like, and that it's NOT a htaccess issue, but I might be wrong.
Any ideas? Pulling my hair out here!
Thanks
- Tried a fresh SS install, created a level 3 page, redirect loop still appears
-
Re: Redirect loop when visiting level 3 pages

23 November 2010 at 10:28am
might be a corrupt sitetree in the database, i've had some strange things happen there - have you copied / upgraded / done stuff to the database? I've seen emtpy classnames but if I were you I'd check pages with parents in a circle loop - start with the urlsegments page1/page2 in your example.com - if you can start with a fresh site tree and see how that works out
-
Re: Redirect loop when visiting level 3 pages

3 December 2010 at 12:10am
Thanks, I've had a quick look through the SiteTree table but can't see anything odd.
But the strange this is, I tried a fresh SS install, dropping the old database, and upon creating a level 3 page in the CMS, and trying to access it I had the same problem.
The only thing I can think it could be is a strange issue with the host, but I don't know what!
| 658 Views | ||
|
Page:
1
|
Go to Top |

