• Hey, so I have now got SSL on my site! my users can now use https. Yippee!

    However, since then the home URL seems to be messed up.

    for some reason
    https://dustyghost.com
    is becoming
    https://dustyghost.comindex.php/

    something of note here, my WordPress site is installed in a subdirectory.
    So the home url of dustyghost.com loads a WP site located in a publicHTMl/dustyghost subfolder.

    So I have 2 htaccess files:

    in the website root dir:

    # Use PHP70CGI as default
    AddHandler fcgid70-script .php
    # Changed PHP handler from application/x-httpd-php54s to application/x-httpd-phpbetas on Fri Dec 18 05:06:37 MST 2015.
    Options -Indexes
    
    Redirect 301 /tablet_tut.html https://dustyghost.com/marks-stuff/tutorials/graphics-tablet-making-the-change/
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^(www.)?dustyghost.com$
    RewriteCond %{REQUEST_URI} !^/dustyghost/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /dustyghost/$1
    RewriteCond %{HTTP_HOST} ^(www.)?dustyghost.com$
    RewriteRule ^(/)?$ dustyghost/index.php [L] 
    </IfModule>
    
    # END WordPress
    
    RewriteEngine On
    RewriteCond %{SERVER_PORT} !^443$
    RewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]

    and in the dustyghost sub dir:

    # Use PHP70CGI as default
    AddHandler fcgid70-script .php
    # Changed PHP handler from application/x-httpd-php54s to application/x-httpd-phpbetas on Fri Dec 18 05:06:37 MST 2015.
    Options -Indexes
    
    Redirect 301 /tablet_tut.html https://dustyghost.com/marks-stuff/tutorials/graphics-tablet-making-the-change/
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
    
    # Wordfence WAF
    <Files ".user.ini">
    <IfModule mod_authz_core.c>
    	Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
    	Order deny,allow
    	Deny from all
    </IfModule>
    </Files>
    
    # END Wordfence WAF
    
    RewriteEngine On
    RewriteCond %{SERVER_PORT} !^443$
    RewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi, DustyGhost, & welcome. could you tell us under ‘Settings>General’ what your home & site url’s are, please? BTW, thanks for providing site url & .htaccess files. Very very helpful! Would everyone on here would do likewise!

    Thread Starter DustyGhost

    (@dustyghost)

    ??

    both are set to:
    https://dustyghost.com

    Thread Starter DustyGhost

    (@dustyghost)

    Um, this is odd, I just tried this on my other PC and it seems that going to https://dustyghost.com is ok there.

    So on the PC where I had the problem I did a DNS flush but it still has the issue.

    So instead of chrome, and used Edge to go to the site on my troubled PC, and it worked. So this looks like chrome has got some cache issue.

    Thread Starter DustyGhost

    (@dustyghost)

    Yep clearing my Chrome cache cured that issue.

    Have another issue though:

    If I go to “dustyghost.com” without putting https on it, so just “dustyghost.com” in the browser, I get directed to HTTP, not HTTPS.

    Based on the .htaccess files above, is there something I should change?

    • This reply was modified 6 years, 10 months ago by DustyGhost. Reason: added tags
    • This reply was modified 6 years, 10 months ago by DustyGhost.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘home url is putting index.php on end of address’ is closed to new replies.