WordPress URL not working?

This is not how rewrite_rules works in WordPress. You miss two things. Match. It has $1, but in reality (take a look to example), you need to work with $matches. Your Query Var. You using q, but its not wp native or declared in example code. You can use one of the public ones or … Read more

Disabling WP-Admin Caching in htaccess

Your hoster is wrong. no logged in user should be cached, admin side or not. This is not just an annoyance type of issue, it is an actual security problem that might cause the disclose of your passwords. Just remove the last caching line from your htaccess, it is unlikely to do you any good … Read more

Issue with my links or permalinks

1) add or edit the .htaccess file, it should be: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> 2) Go to admin panel -> settings -> Permalink and select Post name, if this does not fix, then click on Custom Structure and … Read more

How to 301 redirect to subdirectory but keep access to wp-admin of main domain

I’m assuming that you are willing to do this for maintenance mode, 301 is for permanent redirect. You can add this snippet in functions.php to enable redirection of the entire wordpress site to another site. add_action( ‘template_redirect’, ‘wp_maintance_mode’ ); function wp_maintance_mode() { wp_redirect( “http://new_url” ); // or if the folder is outside wordpress and lies … Read more