phpBB2Refugees.com Logo
Not affiliated with or endorsed by the phpBB Group

Register •  Login 

Continue the legacy...

Welcome to all phpBB2 Refugees!Wave Smilie

This site is intended to continue support for the legacy 2.x line of the phpBB2 bulletin board package. If you are a fan of phpBB2, please, by all means register, post, and help us out by offering your suggestions. We are primarily a community and support network. Our secondary goal is to provide a phpBB2 MOD Author and Styles area.

My webhost just force upgraded me from PHP 5.6 to PHP 7.2

Goto page Previous  1, 2, 3, 4, 5
 
Search this topic... | Search General Support... | Search Box
Register or Login to Post    Index » General Support  Previous TopicPrint TopicNext Topic
Author Message
StarWolf3000
Board Member



Joined: 10 Jun 2010

Posts: 162
Location: Germany


flag
PostPosted: Sat Dec 26, 2020 11:12 am 
Post subject: Re: My webhost just force upgraded me from PHP 5.6 to PHP 7.

For some reason, the server redirects to a file, that does not exist (of course it doesn't exist, it is purely virtual), instead of rewriting it as a hidden redirect to the existing file. I guess, there's another Rewrite configuration somewhere on the server and yours is ignored.

Rewrite rules are tricky. I have modified yours and put them on a Rewrite testing tool, and they're correct in terms of syntax and functionality:
Code:
RewriteEngine On
# Forums
RewriteRule ^public/museocastello/forum-([0-9]*)-([0-9]*)-([0-9]*)\.html$ public/museocastello/index.php?f=$1&ppage=$2&sort=lastpost&order=DESC&start=$3 [R=301]
RewriteRule ^public/museocastello/forum-([0-9]*)-([0-9]*)\.html$ public/museocastello/index.php?f=$1&ppage=$2&sort=lastpost&order=DESC [R=301]
RewriteRule ^public/museocastello/mforum-([0-9]*)\.html$ public/museocastello/index.php?f=$1&mark=topics [R=301]
RewriteRule ^public/museocastello/mforums\.html$ public/museocastello/index.php?mark=forums [R=301]
RewriteRule ^public/museocastello/forum-([0-9]*)\.html$ public/museocastello/index.php?f=$1 [R=301]
RewriteRule ^public/museocastello/forums\.html$ public/museocastello/index.php [R=301]
RewriteRule ^public/museocastello/admin/forums\.html$ public/museocastello/admin/index.php [R=301]
# Topics
RewriteRule ^public/museocastello/topic-([0-9]*)-([0-9]*)-([0-9]*)\.html$ public/museocastello/viewtopic.php\?t=$1&postdays=$2&postorder=asc&start=$3 [R=301]
RewriteRule ^public/museocastello/poll-([0-9]*)-([0-9]*)\.html$ public/museocastello/viewtopic.php\?t=$1&postdays=$2&postorder=asc&vote=viewresult [R=301]
RewriteRule ^public/museocastello/wtopic-([0-9]*)\.html$ public/museocastello/viewtopic.php?t=$1&watch=topic&postorder=asc [R=301]
RewriteRule ^public/museocastello/utopic-([0-9]*)\.html$ public/museocastello/viewtopic.php?t=$1&unwatch=topic&postorder=asc [R=301]
RewriteRule ^public/museocastello/topic-([0-9]*)-([0-9]*)\.html$ public/museocastello/viewtopic.php?t=$1&start=$2 [R=301]
RewriteRule ^public/museocastello/uttopic([0-9]*)\.html$ public/museocastello/viewtopic.php?t=$1&unmark=topic [R=301]
RewriteRule ^public/museocastello/uptopic([0-9]*)\.html$ public/museocastello/viewtopic.php?p=$1&unmark=post [R=301]
RewriteRule ^public/museocastello/newtopic([0-9]*)\.html$ public/museocastello/viewtopic.php?t=$1&view=newest [R=301]
RewriteRule ^public/museocastello/ptopic-([0-9]*)\.html$ public/museocastello/viewtopic.php?t=$1&view=previous [R=301]
RewriteRule ^public/museocastello/ntopic-([0-9]*)\.html$ public/museocastello/viewtopic.php?t=$1&view=next [R=301]
RewriteRule ^public/museocastello/fpost-([0-9]*)\.html$ public/museocastello/viewtopic.php?p=$1&view=first [R=301]
RewriteRule ^public/museocastello/post-([0-9]*)\.html$ public/museocastello/viewtopic.php?p=$1 [R=301]
RewriteRule ^public/museocastello/topic-([0-9]*)\.html$ public/museocastello/viewtopic.php?t=$1 [R=301]
# misc.
RewriteRule ^public/museocastello/usercp\.html$ public/museocastello/usercp.php [R=301]
RewriteRule ^public/museocastello/faq\.html$ public/museocastello/faq.php [R=301]
RewriteRule ^public/museocastello/search\.html$ public/museocastello/search.php [R=301]
RewriteRule ^public/museocastello/memberlist\.html$ public/museocastello/memberlist.php [R=301]
RewriteRule ^public/museocastello/viewonline\.html$ public/museocastello/viewonline.php [R=301]
RewriteRule ^public/museocastello/login\.html$ public/museocastello/login.php [R=301]
RewriteRule ^public/museocastello/groups\.html$ public/museocastello/groupcp.php [R=301]
Back to top
Lord Phobos
Board Member



Joined: 05 May 2020

Posts: 18



PostPosted: Sat Dec 26, 2020 12:58 pm 
Post subject: Re: My webhost just force upgraded me from PHP 5.6 to PHP 7.

I've removed those rules yesterday, they shouldn't be here.
Back to top
Lord Phobos
Board Member



Joined: 05 May 2020

Posts: 18



PostPosted: Thu Dec 31, 2020 2:48 pm 
Post subject: Re: My webhost just force upgraded me from PHP 5.6 to PHP 7.

Nobody has an hint?
Back to top
Display posts from previous:   
Register or Login to Post    Index » General Support  Previous TopicPrint TopicNext Topic
Page 5 of 5 All times are GMT
Goto page Previous  1, 2, 3, 4, 5
 
Jump to:  

Index • About • FAQ • Rules • Privacy • Search •  Register •  Login 
Not affiliated with or endorsed by the phpBB Group
Powered by phpBB2 © phpBB Group
Generated in 0.0243 seconds using 15 queries. (SQL 0.0021 Parse 0.0008 Other 0.0214)
phpBB Customizations by the phpBBDoctor.com
Template Design by DeLFlo and MomentsOfLight.com Moments of Light Logo