Two “.htaccess” Files Located in Different Directories…
-
Hi, I found two “.htaccess” files, one is located in ‘/httpdocs/.htaccess’:
# 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
Another one is located in ‘/httpdocs/wordpress/.htaccess’:
# BEGIN Better WP Security # Begin HackRepair.com Blacklist RewriteEngine on #Block comment spammers, bad bots and some proxies RewriteCond %{REMOTE_HOST} 12.226.240.248 [OR] RewriteCond %{REMOTE_HOST} 24.111.102.26 [OR] RewriteCond %{REMOTE_HOST} 24.117.121.113 [OR] RewriteCond %{REMOTE_HOST} 65.30.216.140 [OR] RewriteCond %{REMOTE_HOST} 67.87.64.23 [OR] RewriteCond %{REMOTE_HOST} 68.12.149.198 [OR] RewriteCond %{REMOTE_HOST} 69.139.167.203 [OR] RewriteCond %{REMOTE_HOST} 74.95.182.57 [OR] RewriteCond %{REMOTE_HOST} 91.121.3.29 [OR] RewriteCond %{REMOTE_HOST} 203.94.229.227 [OR] RewriteCond %{REMOTE_HOST} 208.96.122.142 [OR] RewriteCond %{REMOTE_HOST} 210.0.141.247 [OR] RewriteCond %{REMOTE_HOST} 210.197.97.67 [OR] ...
The WordPress was installed on ‘/wordpress/’ dir, then never changed, but when users go to my site, the URL shows “https://www.mydomain.com”, no ‘wordpress’ shown on the URL.
Also, from Settings > General:
WordPress Address (URL): https://www.mydomain.com/wordpress
Site Address (URL): https://www.mydomain.comIt seems some plugins are using “wordpress/.htaccess”, but “/.htaccess” is also working, it is safe to keep working like that? How to fix this??
Thanks!!
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Two “.htaccess” Files Located in Different Directories…’ is closed to new replies.