• gday there!

    i have what i think is a simple problem, but it might generate a loop, im not entirely sure. so here we go.

    ive followed the guide here on having wordpress blog as my front page. link nere

    it all works PERFECTLY. except for one thing.

    https://mysite.com is correctly accessing the mysite.com/blog directory.

    BUT when a user inputs

    https://mysite.com/blog/

    manually, i get a 404. which, ideally, should not happen, the user should be able to use that link fine. now here is the kicker. when the user inputs

    https://mysite.com/blog/index.php

    manually, the site works perfectly again. all other links such as categories and such work fine.

    obviously, this is quite annoying.

    here is a sample tree structure.

    \public_html
    |
    |— .htaccess
    |—- index.php
    |—–\blog
    |
    |—index.php

    the contents of my only .htaccess file is as follows:

    ErrorDocument 404 /404.php
    
    #BEGIN WordPress
    <IfModule mod-rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME !-f
    RewriteCond %{REQUEST_FILENAME !-d
    RewriteRule . /index.php [L]
    
    #END WordPress

    thank you for any help that you can give to this frustrating problem.

Viewing 1 replies (of 1 total)
  • Thread Starter ckortman

    (@ckortman)

    well, here is a crappy solution.

    there are probably a billion better ways to do it.

    i added into a .htaccess file in the /blog directory the following code:

    RewriteEngine  on
    RewriteBase    /blog/
    RewriteRule    ^$  / [R]

    ineligent, but it will do.

Viewing 1 replies (of 1 total)
  • The topic ‘htaccess half there’ is closed to new replies.