Forums

[resolved] 404 error in wp-admin (7 posts)

  1. ptowers49
    Member
    Posted 1 year ago #

    Hi
    I've just installed WordPress alongside zencart on my site http://www.classicalchandeliers.co.uk by creating a dbase and FTP
    THe install went ok but when I login or go to http://www.classicalchandeliers.co.uk/blog/wp-admin/ I ger a 404 error!!!
    Would anyone have any ideas?

    thanks

    Paul

  2. Chris_K
    Member
    Posted 1 year ago #

    Where, exactly, on your site did you put WordPress?

    http://www.classicalchandeliers.co.uk/blog/ is a 404 as well.

  3. ptowers49
    Member
    Posted 1 year ago #

    I put it under html_public/blog/
    which I understand is http://www.classicalchandeliers.co.uk/blog
    The install went ok but I get 404 errors!!!
    Can you figure out fron this?

    thxs

    Paul

  4. Chris_K
    Member
    Posted 1 year ago #

    Sure doesn't seem to be a blog there.

    After the install finished did you receive a confirmation email? What URL was on that?

  5. ptowers49
    Member
    Posted 1 year ago #

    sure did , with the URL
    http://www.classicalchandeliers.co.uk/blog

    and I can get to http://www.classicalchandeliers.co.uk/blog/wp-login.php !!!

    Is it anything to do with my .htacess file
    RewriteEngine On

    RewriteCond %{HTTP_HOST} ^classicalchandeliers.co.uk [NC]

    RewriteRule ^(.*)$ http://www.classicalchandeliers.co.uk/$1 [L,R=301]

    # Don't rewrite any URIs ending with a file extension (ending with .[xxxx])
    RewriteCond %{REQUEST_URI} !\.[a-zA-Z]{2,4}$
    # Don't rewrite admin directory
    RewriteCond %{REQUEST_URI} !^/Chandelier001.* [NC]
    # Don't rewrite editors directory
    RewriteCond %{REQUEST_URI} !^/editors.* [NC]
    # Don't rewrite cPanel directories
    RewriteCond %{REQUEST_URI} !/cpanel.* [NC]
    RewriteCond %{REQUEST_URI} !/frontend.* [NC]
    # Handle all other URIs using Zen Cart (index.php)
    RewriteRule (.*) index.php?%{QUERY_STRING} [L]

  6. Chris_K
    Member
    Posted 1 year ago #

    Hmm... yeah. I'm not an .htaccess expert, but you might add a line to that one like:

    RewriteCond %{REQUEST_URI} !/blog.* [NC]

    Put it right before that Zen Cart comment.

  7. ptowers49
    Member
    Posted 1 year ago #

    thanks that was a great help and got the blog working as a stamdalone blog.
    I've now added the blog into zencart using a module so the blog is accessible from the sidebar and I've now been able to remove this line.
    The module overcomes this rewrite issue.
    If other people want wordpress on zencart then this seems to be a good way to integrate into the site.
    I've used the CEON URL tool and the WOZ zencart wordpress module.
    This can be seen at http://www.classicalchandeliers.co.uk

    Thanks Again.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.