News:

Wondering if this will always be free?  See why free is better.

Main Menu

Error when clicking login

Started by AJH, October 17, 2022, 09:42:20 PM

Previous topic - Next topic

AJH

When I click "login" the login box pops up but it says "error" and nothing else.

But when I click on Register and then go and try and click login again it works.

What causes this?

My forum is FreelancerForums.net [nofollow]

Diego Andrés

It's caused by the URL, make sure you keep it consistent.
Your actual URL is https://freelancerforums.net/index.php, but the link you provided is without it.

You could add rules to your htaccess file to force the same url across your domain.

SMF Tricks - Free & Premium Responsive Themes for SMF.

AJH

Is there a way to remove the "index.php" in the URL?

Or what would I add to the file to do what you suggested?

Diego Andrés

No sorry I didn't mean that.
I meant the https, sorry for the confusion.

When using http, it's going to give you issues because the forum is set to use ssl.

SMF Tricks - Free & Premium Responsive Themes for SMF.

AJH

Oh okay, so I can get with my host about forcing https on the domain?

Diego Andrés

Probably, but you can add a rule to your htacess file.

RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

I copied it from a Google search, I'm on the phone now but looks about right.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Kindred

As for removing index.php

Don't

It will cause more issues than the worth of the edit
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Shades.

#7
Quote from: Diego Andrés on October 17, 2022, 11:31:17 PMProbably, but you can add a rule to your htacess file.

RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

I copied it from a Google search, I'm on the phone now but looks about right.

This is how I did mine, similar to that...

Quote# Always use https for secure connections
# Replace 'www.example.com' with your domain name
# (as it appears on your ssl certificate)
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L]
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Myselfttt

Quote from: Shades. on October 18, 2022, 09:28:32 PM
Quote from: Diego Andrés on October 17, 2022, 11:31:17 PMProbably, but you can add a rule to your htacess file.

RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

I copied it from a Google search, I'm on the phone now but looks about right.

This is how I did mine, similar to that...

Quote# Always use https for secure connections
# Replace 'www.example.com' with your domain name
# (as it appears on your ssl certificate)
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L]


I tried it and it didn't work.

You cannot view this attachment.

Quote. I installed the mod and encountered a problem.

If you enter like www.websitename . com Ex. www.siambot . com
I can't log in

But if I type a name without www. followed by the website name Ex. siambot . com
I can log in.

Where do I need to change the code to allow logging in both ways in Ex. www.siambot . com and siambot . com? 

I edited in setting.php error 403 disappeared but buttom log in it error

@Diego Andrés
@Shades.

Advertisement: