Forum Replies Created

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

    (@theleprechaun)

    My htaccess is as follows:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
    RewriteRule ^(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
    </IfModule>
    
    # END WordPress

    It’s just the stuff from the setup page copied into the file and replacing the rules between the mod_rewrite tags. Nothing fancy.

    EDIT: I’m not using https. I’m fresh out of install, just set up a couple pages on the main site, made a few posts so it’s not empty of content. I’ve put in one theme, no plugins at all.

    • This reply was modified 7 years, 7 months ago by TheLeprechaun.
    Thread Starter TheLeprechaun

    (@theleprechaun)

    I have – as part of the setup. .htaccess is as follows:

    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /irishpubsmain/
    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]
    </IfModule>
    
    # END WordPress

    Unless I’m supposed to get rid of the IfModule tags, I think that’s right.

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