Protect Upload Folder Files With Ampersand Problem

Wondering if anyone can help with this problem. I have been able to get file protection working in WordPress with the method below: .htaccess RewriteCond %{REQUEST_FILENAME} -s RewriteRule ^wp-content/uploads/(.*)$ checkloggedin.php?file=$1 [QSA,L] checkloggedin.php has code to make sure the user is logged in before providing the file otherwise the login page is displayed. This works exactly … Read more

.htaccess redirects disappeared after re-saving permalinks

I want my WordPress website to load with https + non-www and without trailing slashes. I put the following code in .htaccess file: <IfModule mod_rewrite.c> RewriteEngine On # Remove trailing slash from non-filepath urls RewriteCond %{REQUEST_URI} /(.+)/$ RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^ https://example.com/%1 [R=301,L] # Force HTTPS and remove WWW RewriteCond %{HTTP_HOST} ^www\.(.*)$ [OR,NC] RewriteCond … Read more

.htaccess redirect all pages to new domain

Which redirect rule would I use to redirect all pages under olddomain.example to be redirected to newdomain.example? The site has a totally different structure, so I want every page under the old domain to be redirected to the new domain index page. I thought this would do (under olddomain.example base directory): RewriteEngine On RewriteRule ^(.*)$ … Read more

Can WordPress be installed at the root level, if a homepage called index.php already exists?

Can WordPress be installed at the root level, if a homepage called index.php already exists? 2 Answers 2 In theory, you could rename the file and change the rewrite rule accordingly. Assuming you rename it to wp-index.php, it would look something like this: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d … Read more

How can I use .htaccess rewrite to redirect root URL to subdirectory?

Trying to get www.example.com to go directly to www.example.com/store I have tried multiple bits of code and none work. What I’ve tried: Options +FollowSymlinks RewriteEngine on RewriteCond %{HTTP_HOST} ^example.com$ RewriteRule (.*) http://www.example.com/$1 [R=301,L] RewriteCond %{HTTP_HOST} ^(.+)\www.example\.com$ RewriteRule ^/(.*)$ /samle/%1/$1 [L] What am I doing wrong? 19 Answers 19

WordPress multisite causing Error 101 (net::ERR_CONNECTION_RESET): Unknown error [duplicate]

This question already has answers here: Closed 10 years ago. Possible Duplicate: WordPress upgrade now receiving Error 101 (net::ERR_CONNECTION_RESET): Unknown error We have just installed WordPress 3.0.1 and everything worked fine. However, as soon as we started to install the multisite functionality by following this tutorial, things started to go wrong. At the end of … Read more