Title: Help with .htaccess setup
Last modified: August 10, 2017

---

# Help with .htaccess setup

 *  [scorpio](https://wordpress.org/support/users/gbassoc/)
 * (@gbassoc)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/help-with-htaccess-setup/)
 * I have static HTML pages in my domain root (lets say [https://mysytez.com](https://mysytez.com))
   
   I have moved WordPres install into a subdomain (lets say /subz/) I also have .
   htaccess directives to; (1) Remove .html from static pages (2) Allow WP URLs 
   to remain as if they were in the domain root ( as instructed here [https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory](https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory))
 * The setup works great until I need to access WP backend, at that point I start
   getting redirect errors.
    The two set of .htaccess directives below both do what
   they are supposed to on their own, but I suspect when setup together there is
   obviously some incompatible redirection taking place. Unfortunately, I have very
   little understanding of regex to understand what the directives are doing and
   how to fix the issue, would someone be able to tell me how to fix this?
 * I know the easy option would be to install WP in a folder, but I don’t want the
   folder name showing up in the URL if I can avoid doing so.
    Thank you in advance
 * ## Begin Remove extension from html pages ##
    RewriteEngine On RewriteCond %{
   REQUEST_FILENAME} !-f RewriteRule ^([^/]+)/$ $1.html RewriteRule ^([^/]+)/([^/]
   +)/$ /$1/$2.html RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME}!-
   d RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$ RewriteRule (.*)$ /$1/ [
   R=301,L] ## End Remove extension from html pages ##
 * #BEGIN WordPress
    <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTP_HOST}
   ^(www.)?mysytez.com$ RewriteCond %{REQUEST_URI} !^/subz/ RewriteCond %{REQUEST_FILENAME}!-
   f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /bwms/$1 RewriteCond%{
   HTTP_HOST} ^(www.)?mysytez.com$ RewriteRule ^(/)?$ subz/index.php [L] </IfModule
   > #END WordPress

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [frankwarwick](https://wordpress.org/support/users/frankwarwick/)
 * (@frankwarwick)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/help-with-htaccess-setup/#post-9396915)
 * Hi [@gbassoc](https://wordpress.org/support/users/gbassoc/)
    Did you change the
   path in wp-blog-header.php Add the name of the folder to the wp-load.php … i.
   e. subz/wp-load.php
 *  Thread Starter [scorpio](https://wordpress.org/support/users/gbassoc/)
 * (@gbassoc)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/help-with-htaccess-setup/#post-9399766)
 * hey [@frankwarwick](https://wordpress.org/support/users/frankwarwick/)
    Thanks
   for the suggestion, unfortunately, all I get now is “mysytez.com is currently
   unable to handle this request. HTTP ERROR 50
 *  [frankwarwick](https://wordpress.org/support/users/frankwarwick/)
 * (@frankwarwick)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/help-with-htaccess-setup/#post-9404062)
 * Hi [@gbassoc](https://wordpress.org/support/users/gbassoc/)
    As your HTML page
   is not part of your WordPress installation, there is no reason to have the .htaccess
 * Have you tried removing this reference from .htaccess

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Help with .htaccess setup’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [frankwarwick](https://wordpress.org/support/users/frankwarwick/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/help-with-htaccess-setup/#post-9404062)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
