Skip to content

Instantly share code, notes, and snippets.

@musoftware
Created August 5, 2017 00:26
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save musoftware/e1f23064980f183a78b89cd96c5e2ebe to your computer and use it in GitHub Desktop.
.htaccess for wordpress
# 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>
@Hasan261126
Copy link

ok

@musoftware
Copy link
Author

change the with your cpanel username

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment