Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

Redirect nonSEF URLs to SEF: causing redirect loop
(1 viewing) (1) Guest
Support forum for users using free edition of JoomSEF 3 (Joomla 1.5 compatible). These forums are mainly for mutual help between users.

Please note that due to our capacity limitations, we do not monitor these forums regularly.
  • Page:
  • 1

TOPIC: Redirect nonSEF URLs to SEF: causing redirect loop

Redirect nonSEF URLs to SEF: causing redirect loop 11 years, 4 months ago #37202

The "Redirect nonSEF URLs to SEF" option in configuration causes a redirect loop for my homepage.

This is my homepage URL in JoomSEF: "index.php?option=com_content&view=frontpage&Itemid=1"
SEF Field is blank.

How can I resolve this so that my homepage works with this setting turned on?

I am running Joomla 1.5.26 with JoomSEF 3.10.0

Thanks in advance.
Emmanuel

Re: Redirect nonSEF URLs to SEF: causing redirect loop 11 years, 4 months ago #37395

  • dajo
  • OFFLINE
  • Posts: 5069
If you disable the option, what does your homepage URL look like in the address bar of your web browser? Mainly, if you open the homepage with just domain.com/ is it redirected to domain.com/index.php?option=com_content&...ontpage&Itemid=1 ?
ARTIO Support Team

Re: Redirect nonSEF URLs to SEF: causing redirect loop 11 years, 4 months ago #37416

Hi, thanks for your response.

It does not show the "domain.com/index.php?option=com_content&view=frontpage&Itemid=1" in the URL, just "domain.com/"

With the "Redirect nonSEF URLs to SEF" option disabled, my urls work because I have imported them from ACEsef. For my homepage, it shows domain.com/ with no index.php... and it works without redirect loop error.

But for new articles I add, I have generate new SEF urls turned off so when I go in and manually generate a url, joomla only uses the non-sef URL.

When I turn "Redirect nonSEF URLs to SEF" on, JoomSEF redirects properly to the SEF URL, but my homepage gets stuck in a redirect loop.

Is there something wrong with the homepage URL when I have "Redirect nonSEF URLs to SEF" turned on, that would cause this problem? I did not have this issue when I first installed JoomSEF before I imported ACEsef URLs into JoomSEF but there is only one homepage URL in JoomSEF, so I don't know where the redirect loop would be coming from.

Thanks,
Emmanuel

Re: Redirect nonSEF URLs to SEF: causing redirect loop 11 years, 4 months ago #37455

  • dajo
  • OFFLINE
  • Posts: 5069
Check if there's any 301 redirect set up in JoomSEF's 301 Redirects Manager that could cause this. Also check if you have some Aliases set up for the homepage SEF URL in JoomSEF's URLs Manager.
ARTIO Support Team

Re: Redirect nonSEF URLs to SEF: causing redirect loop 11 years, 4 months ago #37468

This is wierd. I had a few 301 redirects to the homepage which I deleted. It still got the same redirect loop. I have a home menu item that goes to the "domain.com/" So then I changed my homepage SEF URL for that Menu ITEM 1 to be domain.com/home and turned on the "Redirect nonSEF URLs to SEF" option and now the redirect loop is gone. The homepage loads fine.

The second part of the problem still remains though. My custom URLs that are non SEF don't get redirected to their SEF URL in JoomSEF.

Is there a procedure for generating new URLs that will be redirected when you set "Disable creation of new SEF URLs?" to "Yes"?

I have been going in to the Manage SEF URLS, clicking NEW and adding the NON-SEF URL and then putting an SEF url for it. Do I have to have a menu item associated with it?

Thanks,
Emmanuel

Re: Redirect nonSEF URLs to SEF: causing redirect loop 11 years, 4 months ago #37489

  • dajo
  • OFFLINE
  • Posts: 5069
Hi,

The main problem with creating SEF URLs manually in JoomSEF is that the non-SEF URL must match some criteria:
1. it must start with index.php
2. the option variable must be the first one
3. the Itemid variable must be set separately in the Itemid field
4. all the other variables must be in the alphabetical order

So for example if you have non-SEF URL like:
index.php?option=com_content&view=category&id=14&Itemid=435

You need to set it up like:
Old Non-SEF Url: index.php?option=com_content&id=14&view=category
Itemid: 435

Notice that the id variable must come before the view variable, because of the alphabetical order condition.
ARTIO Support Team
  • Page:
  • 1
User Login Empty