Non WordPress Folder in a WordPress Site

You can revert to the default WordPress rewrite rules. This line already handles checking for existing physical directories: RewriteCond %{REQUEST_FILENAME} !-d Your problem does not lie with WordPress, but with some other problem with your server/htaccess files. You have not provided enough information to solve your problem, but it probably is an issue with file … Read more

Test site pages go to main site

Your htaccess file seems to be a little off. I would suggest the first part of the file should look like the following… <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /testsite/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /testsite/index.php [L] </IfModule> And that you store it in the ‘testsite’ folder not the root.

Redirect within wordpress template/plugin

I think you should take a step back and clarify what you are actually trying to do. Usually with WordPress there is no need to throw around with crazy redirects, virtual pages and file includes. Although you can do all these things (mentioning WP_Rewrite). When all you want is passing parameters to a page all … Read more

Redirect from ip to domain

WordPress does not create a complete new .htaccess. It just rebuilds the part between the WordPress markers: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L] RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress Any rule placed outside of this block … Read more

ow to change cutsom page url of wordpress site using htaccess

At first, you shouldn’t use .htaccess directly when working with WordPress. WordPress has powerful rewrite API allowing you to do the stuff from plugins or theme’s functions.php If you need the id=floos on more than one page, consider using rewrite endpoints: function makeplugins_add_json_endpoint() { add_rewrite_endpoint( ‘floos’, EP_PAGES ); } add_action( ‘init’, ‘makeplugins_add_json_endpoint’ ); To determinate, … Read more

Use two different index pages

You can’t set DirectoryIndex to prototype.php and expect everything else to work correctly. DirectoryIndex is not just a “landing page”. A lot of requests go through that file. I think you are making this more complicated than it needs to be. Put your code for prototype.php into a WordPress custom theme template file. Create a … Read more

.htpasswd asking for authentication on home page

Be aware, the AJAX file admin-ajax.php is in the wp-admin directory too. So I guess your site is using AJAX to send requests in the background to the admin directory. Clicking it away lets the AJAX request fail, but the error isn’t displayed. Change the .htaccess to: AuthType Basic AuthName ‘YOUR_AUTH_NAME’ AuthUserFile PATH_TO_HTPASSWORD <Files ‘*’> … Read more