Products » Support Forums 

Support Forums

HomeHomeDotNetNuke Modu...DotNetNuke Modu...Url MasterUrl Master301 redirects do not occur, get a 302 redirect instead301 redirects do not occur, get a 302 redirect instead
Previous
 
Next
New Post
1/23/2010 7:57 PM
 

Hello,

We are working on an international website that is using the URL Master module with URL rewriting and attempting to also use 301 redirects from the old site pages (.NET application) to the new site (DNN version 5.1.2). 

In reviewing the HTTP request information in Fiddler, there is no 301 redirect request being sent and returns a 200 request for the URL http://novusint.com/beef.  Further investigation using wget showed us the URLs were returning back a 302 redirect request and the 302 redirect URL was pointing to the site homepage at http://novusint.com/.

The following URL is from the old site, which we have redirects setup in the URL Master module to redirect to the new page on the DNN site:
http://novusint.com/beef

And it should redirect to this URL:
http://novusint.com/en/market-segments/beef

The following are the redirects that are setup in the URL master Page Urls section for the home page to the beef section:
http://novusint.com/Default.aspx?TabId=823                                                301 – Perm Redirect
http://novusint.com/en/MarketSegments/Beef/tabid/823/Default.aspx          301 – Perm Redirect
http://novusint.com/en/market-segments/beef                                                200 - OK
The next two are additions and are links from the old site:
http://novusint.com/species/beef/beef-main                                                    301 – Perm Redirect
http://novusint.com/beef                                                                                 301 – Perm Redirect

After entering the http://novusint.com/beef URL, the page does not redirect to the proper URL of http://novusint.com/en/market-segments/beef and instead remains on http://novusint.com/beef.

When we run a test from the "Test URL Rewriting and Redirecting Functions" from the Friendly URL module, it outputs that http://novusint.com/beef is using a 301 redirect to http://novusint.com/en/market-segments/beef.

Are we setting up the redirects correctly within the URL master module?  What can we do to get the 301 redirect to apply properly to the URLs within our site?

 

 
New Post
1/24/2010 12:20 AM
 

When I looked at the /beef url, I received a 302 redirect to the /entry.aspx page.  I'm guessing this is some type of redirect to get the user to choose a language, and then set a cookie. 

After choosing the language,  I did see that a 200 status was returned for the /beef Url.  However,inspecting in Fiddler I can see that:

The Http status has a code of 200, but a 'Transport' Location header indiciating a redirect:

Location: http://novusint.com/en/market-segments/beef

The Url Master returns the redirect reason header : X-Redirect-Reason: Custom Redirect Requested

So I think what is happening is that the redirect is being issued by the Url Master module, but somehow, somewhere, another component on your site is overriding the 301 status and replacing it with a 200 status.  I've never seen anything like that before, but as the 'test' function works OK, and the custom redirection is being isseued by the module, it seems that this is the case.  Do you have any other modules operating in the HttpModules section of your web.config?  Do you have any other rewriting/redirecting tools configured?

 
New Post
1/24/2010 1:35 AM
 

Hi Bruce,

You are correct that the entry.aspx page is a language selection page where when the user selects their preferred language, a cookie is set for the site language they chose.

We reviewed the web.config and there is a .NET rewriter module operating in the HttpModule section.  This is in use primarily for applying rewrites to documents that are currently hosted on their old site.  This is the httpModule line added in the web.config for the .NET rewriter module:

<add type="Intelligencia.UrlRewriter.RewriterHttpModule, Intelligencia.UrlRewriter" name="UrlRewriter" />

Another piece of information I can provide is that we are using Adequation's Localization Extensions module with the site as well, if that has any known issues when operating in conjunction with URL master.

Thank you and we appreciate your help on this matter.

 
New Post
1/24/2010 6:27 AM
 

Can you try commenting out the other url rewriter, and see if that corrects the problem with the redirect not working?

If it does, the rules for the other rewriter might have to be reviewed so that they don't have any effect on the Urls you're trying to redirect.

 
Previous
 
Next
HomeHomeDotNetNuke Modu...DotNetNuke Modu...Url MasterUrl Master301 redirects do not occur, get a 302 redirect instead301 redirects do not occur, get a 302 redirect instead


Support Guidelines.. Please read before posting

To get support on iFinity products and services, please search the forums for the the answer to the problem you are seeking. If you cannot find a solution, post a question in the relevant forum.   Ensure that you specify the relevant versions of the problem, and the actual error message or a detailed description of the problem.    You will need to register with this site to post on the forum.  If you have a Microsoft Live (Hotmail/Passport) account you can use that.  If you have a Open Id account you can use that.  If you neither of these, you will need to register a user Id and password.

Please note : If you are posting a new thread for the Url Master module, please include the following information where applicable:

- Url Master version

- DotNetNuke version

- Example Url where possible

- If there is an error, please post the full error text and/or stack trace (from the DotNetNuke event log).