MyBB Community Forums

Full Version: Login / Activation link issues
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
  • [b]Detailed description of your problem[/b], including steps to reproduce if necessary
    - When i try to login to admin panel or when any users wish to register, any links they use to register takes them back to the home page index.html of my site instead of logging them in or giving me access to ACP.
    .
  • [b]URL to your forum/URL to specific problematic page[/b]
    https://darkstar-cheats.com/forum/
    .
  • New installation or upgrade (from which version of MyBB)?
    Fresh install. latest version, installed today.
    .
  • Test user account (if it requires additional permissions)
    tested on new accounts, once activation email links are clicked (they have the correct addresses, including tokens) it takes them to: https://darkstar-cheats.com/index.html (for example) the main page.
    .
  • Screenshot or error text, verbatim see below:
[Image: l6oz4rT.png]
[Image: 7AvrinH.png]
On your screenshot (and tested by the hand), the url in the address bar lack the /forum/ path: check your BBurl in the settings.
(2020-02-27, 11:43 AM)Crazycat Wrote: [ -> ]On your screenshot (and tested by the hand), the url in the address bar lack the /forum/ path: check your BBurl in the settings.

should be set up right, but when i click the link it auto removes that path and redirects me to there.


[Image: v5N74ST.png]
Check it in your ACP too ( Home » Board Settings » Site Details ) and rebuild the cache ( Home » Tools & Maintenance » Cache Manager )
looks like there is a problem with redirect URLs you might have set [eg. through .htaccess file]
(2020-02-27, 12:25 PM).m. Wrote: [ -> ]looks like there is a problem with redirect URLs you might have set [eg. through .htaccess file]

cheers mate, but i can't seem to identify the issue.
I've uploaded to .htaccess file for you to browse if you have time.


.htaccess paste
^ it has no reference to member.php file. does the main site has .htaccess ?

url with member.php is redirecting sometimes to main site
Quote:eg. https://darkstar-cheats.com/forum/member...file&uid=1

edit : forumdisplay.php is also redirected sometimes
Quote:https://darkstar-cheats.com/forum/forumd....php?fid=2

[related thread]
(2020-02-28, 08:53 AM).m. Wrote: [ -> ]^ it has no reference to member.php file. does the main site has .htaccess ?

url with member.php is redirecting sometimes to main site 
Quote:eg. https://darkstar-cheats.com/forum/member...file&uid=1

edit : forumdisplay.php is also redirected sometimes
Quote:https://darkstar-cheats.com/forum/forumd....php?fid=2

[related thread]

Yes, the main site has .htaccess

[Image: RgYbGu2.png]
edit:
here is the full text from the main site .htaccess:
# DO NOT REMOVE THIS LINE AND THE LINES BELOW HOTLINKID:Tebetaraqu
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?darkstar-cheats.com/.*$      [NC]
RewriteRule .*\.(.*|jpg|jpeg|gif|png|bmp|tiff|avi|mpeg|mpg|wma|mov|zip|rar|exe|mp3|pdf|swf|psd|txt|html|htm|php)$ https://darkstar-cheats.com/ [R,NC]
# DO NOT REMOVE THIS LINE AND THE LINES ABOVE Tebetaraqu:HOTLINKID

Got it working. i deleted the main .htaccess

this was meant to force https.

Do i really need it or can i add it to your htaccess file?
^ that main site's htaccess was meant to prevent direct access to many types of files !
I feel that it is not really required. or you can remove just |php from the RewriteRule