How can I restrict access, by IP, to the `wp-admin` folder/Dashboard?
How can I restrict access, by IP, to the `wp-admin` folder/Dashboard?
How can I restrict access, by IP, to the `wp-admin` folder/Dashboard?
Assuming this is completely outside of WordPress then… to rewrite /test/test/123/dnfjk to /test/test.php?id=123&z=dnfjk, then you could do something like the following in the /test/.htaccess file (not the WordPress .htaccess file in the document root): Options -MultiViews RewriteEngine On RewriteRule ^test/(\d+)/([a-z]+)$ test.php?id=$1&z=$2 [L] MultiViews needs to be disabled for this to work. RewriteRule ^(.*).html$ https://example.com/$1 [R=301,L] … Read more
To be honest, I’d change my .conf file to state the correct port if you’ve got access to that. For instance. <VirtualHost *:8012> ServerAdmin webmaster@localhost DocumentRoot /var/www/LOCATION OF FILES <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/LOCATION OF FILES> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> Then i’d restart … Read more
Force HTTPS for mapped domain pointing to wordpress domain
Remove subdirectory from links
Site works with “plain” permalinks. Check write permission in your main wordpress dir, maybe wordpress can’t write .htaccess file (you can upload it via FTP). Check if mod_rewrite on server is enabled. mod_rewrite status can be checked printing phpinfo(). If .htaccess file is missing, upload a similar one: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On … Read more
I have the same configuration as you and I too have run into this problem. Assuming that you have got the modules enabled (see below), I think you can safely ignore the results of this part of the compatibility test. W3 Total Cache reports missing modules because mod_php is disabled by Bitnami due to their … Read more
In .htaccess you have to (make sure that you set your directory right !^/../ABC/ ) RewriteEngine on RewriteCond %{HTTP_HOST} ^(www.)?2subdomain.example.com$ RewriteCond %{REQUEST_URI} !^/../ABC/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /ABC/$1 RewriteCond %{HTTP_HOST} ^(www.)?2subdomain.example.com$ RewriteRule ^(/)?$ ABC/index.php [L] https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory
You can try using WP Subdomains plugin. It allows you to use Category slug, Page slug, or Author name as the subdomain name. You’ll have to configure your webserver for each subdomain you want to use. Make sure that a DNS entry has been added to point the subdomains to your server.
htaccess redirects invalid request to home page not 404