• stml

    (@stml)


    I’ve been running WordPress for a while, but a new installation on a new server that I don’t have full access to (webmasters extremely cagey) is causing me problems.

    The standard wordpress htaccess file (

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /3am/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /3am/index.php [L]
    </IfModule>

    ) forbids all access to the wordpress directory. If I remove the htaccess file – or delete its contents and make it non-writeable – I can access all the files, but I can’t write posts (although they are stored in the DB and appear in the Dashboard etc.)

    Anyone? All help gratefully received.

Viewing 5 replies - 1 through 5 (of 5 total)
  • vkaryl

    (@vkaryl)

    Yeah. Get yourself a new decent host. Your .htaccess looks fine assuming your install is in a subfolder named “3am”….

    obscure

    (@obscure)

    2nd that, get a decent host. Remember they work for you, not the other way around. If they don’t provide the features you need there are many more who will.

    shiznaught

    (@shiznaught)

    I’ve been trying to rewrite my htaccess to make sure that domain.com forward to https://www.domain.com for all the pages on my site, in order to avoid the duplicate content penalty in google. This is my code:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    #
    RewriteCond %{HTTP_HOST} !^www\.thetshirtblog\.com
    RewriteRule (.*) https://www.thetshirtblog.com/$1 [R=301,L]
    </IfModule>

    Unfortunately this doens’t really work as desired, and it forwards almost everything to domain.com/index.php. Any help?

    vkaryl

    (@vkaryl)

    shiznaught, maybe start a new thread? Your problem isn’t germane to the OP’s situation.

    Thread Starter stml

    (@stml)

    Unfortunately, this is just design work I’m doing for someone else – they’re not my host, so can’t change. Can anyone tell me why the WP rewrite rules cut access to this directory?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘htaccess problems’ is closed to new replies.