2016-10-12, 04:01 PM
Sorry for this strange post, but CloudFlare is blocking me when I post in this very thread (maybe it thinks I am hacking the server?). So the problem is explained in the attached file.
Quote:And when I have this, I get URLs like:
-------------
http://www.gimp-forum.net/Forum-General-questions
-------------
for my "General questions" forum. Which would be fine if that URL didn't elicit a 404.
So, what am I missing?
# Google SEO workaround for search.php highlights:
# Make this rule the first rewrite rule in your .htaccess!
RewriteRule ^([^&]*)&(.*)$ http://python-forum.io/$1?$2 [L,QSA,R=301]
# Google SEO 404:
ErrorDocument 404 /misc.php?google_seo_error=404
# Google SEO Sitemap:
RewriteRule ^sitemap\-([^./]+)\.xml$ misc.php?google_seo_sitemap=$1 [L,QSA,NC]
# Google SEO URL Forums:
RewriteRule ^Forum\-([^./]+)$ forumdisplay.php?google_seo_forum=$1 [L,QSA,NC]
# Google SEO URL Threads:
RewriteRule ^Thread\-([^./]+)$ showthread.php?google_seo_thread=$1 [L,QSA,NC]
# Google SEO URL Announcements:
RewriteRule ^Announcement\-([^./]+)$ announcements.php?google_seo_announcement=$1 [L,QSA,NC]
# Google SEO URL Users:
RewriteRule ^User\-([^./]+)$ member.php?action=profile&google_seo_user=$1 [L,QSA,NC]
# Google SEO URL Calendars:
RewriteRule ^Calendar\-([^./]+)$ calendar.php?google_seo_calendar=$1 [L,QSA,NC]
# Google SEO URL Events:
RewriteRule ^Event\-([^./]+)$ calendar.php?action=event&google_seo_event=$1 [L,QSA,NC]
Quote:CloudFlare is blocking me when I post in this very threadIts
/ var / www /
www.gimp-forum.net/Forum-General-questions
the URL is rewritten towww.gimp-forum.net/forumdisplay.php?google_seo_forum=General-questions
Then, what is still some magic for me at that point converts google_seo_forum=General-questions into fid=4 by looking things up in the mybb_google_seo table (where it indeed appears).www.gimp-forum.net/forumdisplay.php?fid=4
and these also elicit a 404 and make my browser displaywww.gimp-forum.net/Forum-General-questions
RewriteRule ^Forum\-([^./]+)$ foobarfoobar-$1 [L,QSA,NC]
Doesn't seem to change anything, and even the standard rewrite thread-nnn.html to showthread.php?tid=nnn doesn't work, so maybe it's just a case of .htaccess not being used (despite AllowOverride All and AccessFileName .htaccess.Quote:Did indeed find an AllowOverride None in the apache2 conf for that tree but changing to all doesn't change anything.I did it in the sites-enabled config file not in the apache2.conf
(2016-10-12, 09:46 PM)Ofnuts Wrote: [ -> ]Then, what is still some magic for me at that point converts google_seo_forum=General-questions into fid=4 by looking things up in the mybb_google_seo table (where it indeed appears).
(2016-10-12, 09:46 PM)Ofnuts Wrote: [ -> ]However, I should still be able to use the regular MyBB URLs but using
and these also elicit a 404 and make my browser displaywww.gimp-forum.net/forumdisplay.php?fid=4
www.gimp-forum.net/Forum-General-questions
(2016-10-12, 09:46 PM)Ofnuts Wrote: [ -> ][/b][/i]So, I am a bit stumped. What else can prevent .htaccess from being used (I did check the access rights and ownership)?