Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author AITpro

    (@aitpro)

    The HC Custom WP-Admin URL plugin creates this htaccess code below at the bottom of your root .htaccess file when you add and save your WP-Admin slug on the WordPress Permalinks page.

    Note: In this example I am using “example” for the name of the WP-Admin slug.

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteRule ^example/?$ /wp-login.php [QSA,L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    1. Save this line of code: RewriteRule ^example/?$ /wp-login.php [QSA,L] and delete the rest of the HC Custom WP-Admin URL plugin .htaccess code from the root htaccess file.
    2. Copy this BPS root htaccess code below and paste it into this BPS Custom Code text box: CUSTOM CODE WP REWRITE LOOP START: www/non-www http/https Rewrite code here

    # WP REWRITE LOOP START
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]

    3. Edit that code you just copied to the BPS Custom Code text box and add the line of .htaccess code that you saved in step 1 as shown below.

    # WP REWRITE LOOP START
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteRule ^example/?$ /wp-login.php [QSA,L]

    4. Click the Save Root Custom Code button.
    5. Go to the Security Modes page, click the Create secure.htaccess File AutoMagic button and activate Root Folder BulletProof Mode.

    Thread Starter yonirisqilana

    (@yonirisqilana)

    Thank you for your reply. ??

    I have follow the instruction.
    But, It make my custom admin url not working?
    I dont want people accsess mysite.com/wp-admin

    Plugin Author AITpro

    (@aitpro)

    Works for me so double check that you are doing all of the steps correctly.

    I dont want people accsess mysite.com/wp-admin

    Yes. That is why you have WordPress password protection on the wp-admin folder so that no one can access your wp-admin folder. ??

    Thread Starter yonirisqilana

    (@yonirisqilana)

    okay okay ??
    resolved :v
    Thank you

    Plugin Author AITpro

    (@aitpro)

    Also just an FYI – this plugin will NOT work correctly for a Network/Multisite website because it is only using the WordPress siteurl and home options for a standard single site installation of WordPress and does not have an additional condition for a Network/Multisite site and getting the siteurl and home options that Network/Multisite sites use.

    I assume this plugin will work on a WordPress “Giving WordPress Its Own Directory”, but that may require manually editing the additional site root .htaccess file for WordPress GWIOD site types.

    Thread Starter yonirisqilana

    (@yonirisqilana)

    BTW, Where I can put this code?
    for URL Canonicalization.

    RewriteCond %{HTTP_HOST} ^XXX\.XXX\.XXX\.XXX
    RewriteRule (.*) https://www.mydomain.com/$1 [R=301,L]
    Plugin Author AITpro

    (@aitpro)

    You are asking how to rewrite/redirect non-www URL’s to www URL’s correct?

    WordPress General Settings should have www if you want www URL’s:
    WordPress Address (URL) https://www.your-domain-name.com
    Site Address (URL) https://www.your-domain-name.com

    https://forum.ait-pro.com/forums/topic/htaccess-redirect-www-to-non-www-htaccess-redirect-non-www-to-www/#post-5566

    follow the Custom Code setup steps in the link above. I am not sure how or if the HC Custom WP-Admin URL code will be affected. It will probably still work.

    # WP REWRITE LOOP START
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} ^domainname\.com$ [NC]
    RewriteRule ^(.*)$ https://www.domainname.com/$1 [R=301,L]
    RewriteRule ^index\.php$ - [L]
    RewriteRule ^example/?$ /wp-login.php [QSA,L]
    Thread Starter yonirisqilana

    (@yonirisqilana)

    IP to Domain ??
    Ex. 74.125.130.113 to google.com

    Thanks for reply ??
    I have contact to my Hosting Service, but they say that

    The IP assigned for your account yourdomain.com is 119.81.xxx.xxx. However this is the shared IP of the server and hence it is not possible to have the IP redirected to your website

    .

    And I will not use this setting again.

    Plugin Author AITpro

    (@aitpro)

    Not exactly sure what you were trying to do. You can redirect external Requests from other IP addresses/hosts to a another URL on your website. You cannot use another host’s IP address and do anything with it internally since the IP address is not assigned to your site/server/domain.

    Thread Starter yonirisqilana

    (@yonirisqilana)

    Hi how are you ??

    I got notice from Wordfence Plugin

    Alert generated at Thursday 26th of March 2015 at 10:09:05 PM

    Critical Problems:

    * File contains suspected malware URL: /home/mysite/public_html/wp-content/bps-backup/logs/http_error_log.txt

    https://s11.postimg.org/8o7s0j4yb/Malware.jpg

    https://s29.postimg.org/ee3q6o2qf/bps_log.jpg

    That is seriously problem?

    How to fix?

    Plugin Author AITpro

    (@aitpro)

    Not a problem. BPS blocked an attack from that known bad URL and the Security Log entry has the known bad URL logged in the blocked attack in the log entry. Worfence is looking at the BPS Security Log file log entries so you just need to click/choose the “Always ignore this file” link to tell Wordfence to never check the BPS Security Log file.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Error 404 Not Found’ is closed to new replies.