• Resolved glouglou

    (@glouglou)


    hi, I’m trying to use your mod, but it doesnt work when I’m forcing to use www in htaccess with this code

    RewriteCond %{HTTP_HOST} !^www\. [NC]
    RewriteRule (.*) https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

    When I go to my ‘new’ login/admin url, its ok and show the form page. But when I put my informations, I got the ‘404’ url and impossible to access to the wp-admin. (I need to force the www for another section)

    Any way to fix this ? Thx for your help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support MaximeWPS

    (@seinomedia)

    Hello,

    Thanks for using WPS Hide Login.

    I can’t reproduce this issue. Have tried to deactivate every other plugin to check if the issue was caused by another plugin ?

    Thread Starter glouglou

    (@glouglou)

    Hi and thx for your answer.

    But its a fresh install with no other plugin. I deleted all cookies and cache and still show the 404 page.

    My full .htaccess :

    <Files .htaccess>
    order allow,deny
    deny from all
    </Files>
    
    #####################################################
    
    Options +FollowSymlinks
    Options -MultiViews
    Options -Indexes
    RewriteEngine On
    
    #####################################################
    
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    
    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    RewriteCond %{HTTP_HOST} !^www\. [NC]
    RewriteRule (.*) https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

    Plugin Support MaximeWPS

    (@seinomedia)

    Hello,

    Try rather this :

    RewriteEngine on
    
    RewriteCond %{HTTP_HOST} ^yoursite.com 
    
    RewriteRule (.*) https://www.yoursite.com/$1 [R=301,L]
    Thread Starter glouglou

    (@glouglou)

    Same 🙁

    Trying some others rules for www force and all the time, show the 404 page.

    • Just make a new try with not entering the id & pass and after clic connect, still show the 404 ?!
    • Another try, If I remove the force www in htaccess, all is allright and show the admin manager after entering the form. But on the url manager, I see that the ‘initial’ www on the login form url is automatically remove when show the admin manager. (ex : initial url https://www.mysite.com/newhiddenadminurl/ —> manager url https://mysite.com/wp-admin/) The www is remove when accessing to the manager AND when I try to manually add the www in the url —> 404 page.

    Sure your mod dont love the www 🙁

    • This reply was modified 3 years, 2 months ago by glouglou.
    Plugin Support MaximeWPS

    (@seinomedia)

    Hello,

    We don’t have any problem with www on 1 million websites (Apache or NGINX).

    Please check your .htaccess rule.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘problem with force www’ is closed to new replies.