Error 404 Not Found
-
I have installed and activated plugin : HC Custom WP-Admin URL
it will change default login admin panel http://mysite.com/wp-admin
to custom login admin panel http://mysite.com/exampleBut after I install and activated BPS plugin,
I can not login to mysite.com/wp-admin and mysite.com/example
“Error 404 Not Found “I have backup my .htaccess before.
Please help.
-
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 WordPress1. 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.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-adminWorks 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. 😉
okay okay 😀
resolved :v
Thank youAlso 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.
BTW, Where I can put this code?
for URL Canonicalization.RewriteCond %{HTTP_HOST} ^XXX\.XXX\.XXX\.XXX RewriteRule (.*) http://www.mydomain.com/$1 [R=301,L]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)http://www.your-domain-name.com
Site Address (URL)http://www.your-domain-name.comfollow 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 ^(.*)$ http://www.domainname.com/$1 [R=301,L] RewriteRule ^index\.php$ - [L] RewriteRule ^example/?$ /wp-login.php [QSA,L]IP to Domain 🙂
Ex. 74.125.130.113 to google.comThanks for reply 🙂
I have contact to my Hosting Service, but they say thatThe 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.
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.
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
http://s11.postimg.org/8o7s0j4yb/Malware.jpg
http://s29.postimg.org/ee3q6o2qf/bps_log.jpg
That is seriously problem?
How to fix?
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.
The topic ‘Error 404 Not Found’ is closed to new replies.