Created
August 5, 2017 00:26
Star
You must be signed in to star a gist
.htaccess for wordpress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# change the <USR> with your cpanel username | |
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.php$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /index.php [L] | |
</IfModule> | |
# END WordPress | |
suPHP_ConfigPath /home/<USR>/public_html | |
<Files 403.shtml> | |
order allow,deny | |
allow from all | |
</Files> | |
change the with your cpanel username
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ok