Forums / Cotonti / Support / redir in 0.9.12.1

Ross
#1 2013-01-12 23:01

I updated to Siena 0.9.12.1 and I noticed the redir method to redirect from a page to another URL always gives me a 404 not found error.

Is it because of something in this Siena version? Should I change something in any file?

Dayver
#2 2013-01-12 23:48

If in you not work code from 66-73 string from files /modules/page/inc/page.main.php on Siena 0.9.12.1 pleas try to watch in page_text field in MySql base (eg using phpMyAdmin) in you redir-page and verify in page_text string very first must be the phrase "redir:"

Pavlo Tkachenko aka Dayver
Ross
#3 2013-01-13 22:15

I checked it out in the database but page_text had the "redir" very first.

Any other solution?

Trustmaster
#4 2013-01-14 06:28

Does it actually redirect you to the page that gives 404 error? If so, how does the URL look like?

May the Source be with you!
Ross
#5 2013-01-14 16:41

Yes, it redirects to such a page 

The message on the page is:

 

404 - Not Found

The requested object or URL was not found on this server. 
The link you followed is either outdated, inaccurate, or the server has been instructed not to let you access the page.

The URL is like this one:

http://www.mysite.com/index.php?e=page&c=category&al=page-alias

Dayver
#6 2013-01-15 16:31
Pleas write some example your url for redirect
Pavlo Tkachenko aka Dayver
Trustmaster
#7 2013-01-15 17:06

I think the problem is & which gets replaced with & in the URL. It's a common bug for redirections.

May the Source be with you!
Ross
#8 2013-01-15 17:49
#36811 Trustmaster:

I think the problem is & which gets replaced with & in the URL. It's a common bug for redirections.

I noticed that - but how can I fix it?

Trustmaster
#9 2013-01-15 19:06

Do you use HTML parsing for pages with "redir:"? I think it might be the HTML editor that converts & into &. In this case switching the parser to "none" for those pages and making sure the URLs don't contain & should help.

May the Source be with you!
Ross
#10 2013-01-17 00:02

I tried like you said (parser to "none") but it gives the same error frown

Added 41 seconds later:

& still gets replaced with &amp too

 

Added 2 weeks later:

I am still trying to fix this problem up. Any idea would be appreciated, thank you

This post was edited by Ross (2013-01-27 20:39, 11 years ago)
Trustmaster
#11 2013-01-28 09:46

I could only reproduce this when I switched to HTML parser and submitted the page. Then I switched the parser to "none" and edited the page again to replace & with & manually and remove the HTML that the previous editor added. This solved the problem and further editing with "none" parser worked fine. PM me if this way doesn't work for you.

May the Source be with you!