Форуми / Cotonti / Support / redir in 0.9.12.1

Ross
#1 12.01.2013 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 12.01.2013 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 13.01.2013 22:15

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

Any other solution?

Trustmaster
#4 14.01.2013 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 14.01.2013 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 15.01.2013 16:31
Pleas write some example your url for redirect
Pavlo Tkachenko aka Dayver
Trustmaster
#7 15.01.2013 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 15.01.2013 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 15.01.2013 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 17.01.2013 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


Відредаговано: Ross (27.01.2013 20:39, 11 років тому)
Trustmaster
#11 28.01.2013 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!