Quantcast
Channel: BulletProof Security Forum » All Posts
Viewing all articles
Browse latest Browse all 12488

Reply To: GWIOD – what htaccess code goes in the website root htaccess file?

$
0
0

Hi there,

Getting a bit confused with what’s needed in the default .htaccess file that goes in the root of the site.

Should it reflect the root? or the sub-directory where the actual wordpress site is located?

So if my sub-directory wp install is in a folder called ‘myphotosite’, should it be this?…

# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress

or this, in the root?

# BEGIN WordPress
RewriteEngine On
RewriteBase /myphotosite/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /myphotosite/index.php [L]
# END WordPress

Many thanks, j


Viewing all articles
Browse latest Browse all 12488

Trending Articles