MyBB Community Forums

Full Version: htaccess redirect is permanent
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Read a couple of similar threads about similar issue & none helped.

The .htaccess is configured to redirect to portal.

It is working.

 However, I see no way of accessing the forum.
Without showing the .htaccess, noone can help you.
oops, sorry

I am working on a theme @ a 'test' site
RewriteRule ^([^&]*)&(.*)$ http://testboard.free.nf/index.php/$1?$2 [L,QSA,R=301]
DirectoryIndex portal.php


Redirect /index.php /portal.php
Remove the Redirect /index.php /portal.php

With the DirectoryIndex directive, accessing http://testboard.free.nf/ will open the portal.php but accessing any explicit page (like http://testboard.free.nf/index.php or http://testboard.free.nf/showthread.php?tid=53 will work normaly
maybe I was not too clear.  What I am trying to accomplish is for Portal to be Home.

by removing the 'Redirect /index.php /portal.php' now is logging into the forum again.

by adding  'Redirect /index.php /portal.php'  it logs into Portal but cannot access forum.

That was my issue. I tried a few variations with htaccess & can't seem to accomplish this.
I don't really understand what you expect.
You want to redirect everything to the portal but the login page ?
(2023-09-21, 08:12 AM)Crazycat Wrote: [ -> ]I don't really understand what you expect.
You want to redirect everything to the portal but the login page ?

no, I didn't say that  - what I am trying to do is:

For the site address to 'Initially' go to 'portal ' instead of 'forum' section.

As described here:  (these solutions below are not working anymore)

https://community.mybb.com/thread-212239.html

https://community.mybb.com/thread-214092.html

https://community.mybb.com/thread-218096.html

https://community.mybb.com/thread-93151.html

https://community.mybb.com/thread-212239.html

The purpose of the portal is to have it respond as the 'entry' point to any site.
What would be the purpose to have a 'portal' on the side ?

There was an Mybb plug years back that did this but is no longer available.

I was thinking maybe renaming 'index.php' to 'forum.php (which does not exist)
then rename 'portal.php to index.php ?
Sorry, I don't understand your trouble or your expectation.
I hope someone else will succeed to help you.
Unfortunately, I don't understand what you really want either

If someone clicks a link to a thread in your forum on Google, for example, should they still end up on the portal?
Ok - the Nitty Gritty 1&2...
1. I would like, when a user arrives @ site, to be met by the Portal.
2. ability to enter the Forum from the Portal.
period Smile

Initially, The 'search here' had provided me with numerous accounts dealing with this very same question.
I tried most of the advice provided there this week; including from the Mybb 1.8 manual.
None of the suggestions have worked for me.

@ Crazycat &  bv64 -  I apologize if I have created a confusion. I thought I had explained it clearly @ my first post.

Quote:Crazycat - Sorry, I don't understand your trouble or your expectation.
I hope someone else will succeed to help you.

I understand, thanks for trying Crazycat, I appreciate your interest.



Quote:bv64 - If someone clicks a link to a thread in your forum on Google, for example, should they still end up on the portal?

Of course not - a link is a link.
Pages: 1 2