• Resolved Kanger

    (@kanger)


    I stupidly played around with some htaccess files and now I can see all of the pages on my site apart from the home page…

    any ideas what a regular htaccess file should look like for wordpress? I tried ones about htaccess in codex

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Kanger

    (@kanger)

    This is htaccess in my folder where the wordpress is:

    RewriteEngine On
    RewriteBase /test-site/
    RewriteRule ^index\.php$ - [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]
    AuthName "test-site"
    AuthUserFile "/home/domainroot/.htpasswds/public_html/test-site/passwd"
    Thread Starter Kanger

    (@kanger)

    Now fixed, no idea how

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Just messed up htaccess’ is closed to new replies.