• Resolved roy360

    (@roy360)


    Hello all,

    I work at a web company and have the task of implementing a blog into an existing site. (www.omarcoffee.com).

    I have used wordpress before and created a blog (www.comicblurb.com).

    I downloaded wordpress, uploaded it into the directory called “blog” which is off of the main directory.

    I ran the install and it went great, however once logged in it keeps kicking me to the index page.

    I cannot access my blog, if I go to https://www.omarcoffee.com/blog it just kicks me to the index page.

    There is an .htaccess but it only has to do with the miva merchant store, so this doesn’t look like the problem…

    Why’s wordpress have so many problems!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Have you tried renaming the .htaccess file?

    Thread Starter roy360

    (@roy360)

    Well, we deleted it and this caused a blank screen with text saying we do not have permission.

    Thread Starter roy360

    (@roy360)

    Code of the .htaccess file:

    ### Begin - Inserted by Miva Merchant
    
    DirectoryIndex index.htm
    
    RewriteEngine On
    
    RewriteRule ^mm5/admin.mvc? - [L]
    
    RewriteCond %{REQUEST_FILENAME} !-s
    RewriteRule ^product/([^/.]+).htm$ /mm5/merchant.mvc?Screen=PROD&Product_code=$1 [L]
    
    RewriteCond %{REQUEST_FILENAME} !-s
    RewriteRule ^category/([^/.]+).htm$ /mm5/merchant.mvc?Screen=CTGY&Category_code=$1 [L]
    
    RewriteCond %{REQUEST_FILENAME} !-s
    RewriteRule ^([^/]+)/([^/.]+).htm$ /mm5/merchant.mvc?Screen=PROD&Category_code=$1&Product_code=$2 [L]
    
    RewriteCond %{REQUEST_FILENAME} !-s
    RewriteRule ^([^/.]+).htm$ /mm5/merchant.mvc?Screen=$1 [L]
    
    RewriteCond %{HTTP_HOST} !^www.omarcoffee.com$ [NC]
    RewriteRule ^(.*) https://www.omarcoffee.com/$1 [L,R=301]
    ErrorDocument 400 https://www.omarcoffee.com/index.htm
    ErrorDocument 401 https://www.omarcoffee.com/index.htm
    ErrorDocument 402 https://www.omarcoffee.com/index.htm
    ErrorDocument 403 https://www.omarcoffee.com/index.htm
    ErrorDocument 404 https://www.omarcoffee.com/index.htm
    ErrorDocument 500 https://www.omarcoffee.com/index.htm
    ErrorDocument 501 https://www.omarcoffee.com/index.htm
    ErrorDocument 502 https://www.omarcoffee.com/index.htm
    ErrorDocument 503 https://www.omarcoffee.com/index.htm
    
    ### End - Inserted by Miva Merchant

    From what I can see, you have rewrite rules in there that might stop you reaching the blog sub-folder.

    I had the same issue but I fixed it by putting an .htaccess file into the blog folder. It seems that you forgot to add the index.php into the first line.

    Here’s the code:

    DirectoryIndex index.php index.html
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    https://www.yesimprint.com
    https://www.yesimprint.com/blog

    I think you’ll find it is the DirectoryIndex call at the top of .htaccess. Remove that and see what happens.

    ETA: sorry, that may not be true. Also look at the RewriteRule just above your ErrorDocument.

    Make necessary changes in .htaccess for proper redirection.

    https://blog.host.co.in/hosting-a-wordpress-blog

    Thread Starter roy360

    (@roy360)

    Thank you Coolbryan!
    It works!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Cannot access my blog via URL’ is closed to new replies.