News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Problem with posting / edit / modify in https

Started by bb99, May 27, 2017, 02:08:06 AM

Previous topic - Next topic

bb99

Problem solve with 2.0.14 and got 'Fatal Error'... line 133 after upgrade to php 5.6

But now having new issue with SSL , unable to post when my site is https://mydomaindotcome [nofollow]

when i remove:

RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

from .htaccess

I am able to post via http://mydomaindotcom [nofollow]

but when i add in

RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

to .htaccess

i cannot post anything at all.

Before i upgrade to 2.0.14 already have this issue.

Anyone can help me in this

GL700Wing

Try the following in the .htaccess file in the same directory as the Settings.php file

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} forum_name
RewriteRule ^(.*)$ https://mydomain.com/forum_name/$1 [R,L]
Life doesn't have to be perfect to be wonderful ...

bb99

Quote from: GL700Wing on May 27, 2017, 04:18:30 AM
Try the following in the .htaccess file in the same directory as the Settings.php file

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} forum_name
RewriteRule ^(.*)$ https://mydomain.com/forum_name/$1 [R,L]

Still the same.

only I remove

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} forum_name
RewriteRule ^(.*)$ https://mydomain.com/forum_name/$1 [R,L]

Then i am able to delete and modify in http (no in https)


bb99

#3
my .htaccess

AddHandler application/x-httpd-php56 .php
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://mydomaindotcom/$1 [R,L]



# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: May 27, 2017, 12:09

RewriteEngine on
RewriteBase /


# Rules for: profiles
RewriteRule ^profile/([^/]+)/?$ ./index.php?pretty;action=profile;user=$1 [L,QSA]

# Rules for: actions
RewriteRule ^(activate|admin|ads|announce|attachapprove|buddy|calendar|clock)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(collapse|coppa|credits|deletemsg|display|dlattach|editpoll|editpoll2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(emailuser|findmember|groups|help|helpadmin|im|jseditor|jsmodify)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(jsoption|lock|lockvoting|login|login2|logout|markasread|mergetopics)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(mlist|moderate|modifycat|modifykarma|movetopic|movetopic2|notify|notifyboard)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(openidreturn|pm|post|post2|printpage|profile|quotefast|quickmod)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(quickmod2|recent|register|register2|related|reminder|removepoll|removetopic2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(reporttm|requestmembers|restoretopic|search|search2|sendtopic|smstats|suggest)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(spellcheck|splittopics|stats|sticky|theme|trackip|about:mozilla|about:unknown)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(unread|unreadreplies|verificationcode|viewprofile|vote|viewquery|viewsmfile|who)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(\.xml|xmlhttp)/?$ ./index.php?pretty;action=$1 [L,QSA]

# Rules for: boards
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1.$2 [L,QSA]

# Rules for: topics
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1;topic=$2.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ ./index.php?pretty;board=$1;topic=$2.$3 [L,QSA]

# PRETTYURLS MOD ENDS

#Remove index.php completely via htaccess Mod
RewriteEngine on
RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L]
#Remove index.php completely via htaccess Mod



*Colin* edit to surround .htaccess content in code block

Kindred

You have prettyurls and remove index.php

The second one is always a mistake... the two together may be causing your issues
Сл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."

bb99

Quote from: Kindred on May 27, 2017, 08:03:59 AM
You have prettyurls and remove index.php

The second one is always a mistake... the two together may be causing your issues

I remove the second one but problem still there.

Advertisement: