WordPress.org

Ready to get started?Download WordPress

Forums

Multiple WordPress Installations = Permalink Collision (4 posts)

  1. Dalton
    Member
    Posted 5 years ago #

    I am using WordPress as a CMS and trying to install a second copy of WordPress in a subfolder that uses different templates, plugins, etc. The installation goes fine, but I seem to be getting a permalink collision when a page in the sub-site has the same name as a page in the main installation.

    Example:
    http://www.example.com/about (exists)
    http://www.example.com/subsite/about (exists, but redirects to main about page when I try to visit it)

    Is what I am trying even possible, and does my explanation of the problem make sense?

    Thanks,
    Dalton

  2. SimonJ
    Member
    Posted 5 years ago #

    It seems to me that the links to your pages in your header are not generated by wordpress, but hardcoded directly in html.

    Example from your site :
    <a href="/about">about</a>

    So, it's not really a "permalink collision"...

    But anyway, theses link are not the problem... Even if I type :
    http://www.daltonrooney.com/weblog/about/
    It redirect to your about page of your root installation.

    My first step would be to look at your .htaccess in both installation. The problem should be there.

    S.

  3. Dalton
    Member
    Posted 5 years ago #

    Hi Simon,
    Thanks for the response. Sorry for not being more clear, but I was not talking about my personal site linked from my profile.

    I think you are right, .htaccess must have something to do with it. If the .htaccess from the main folder told WordPress to ignore any urls that match "http://www.example.com/about", then the WordPress installation in that subfolder would take over, yeah? I've always been a bit clumsy with .htaccess, I will try to figure it out.

  4. thinkdj
    Member
    Posted 5 years ago #

    Hey daltonrooney..
    Im facing exactly the same problem. We'd need to make new rewrite rules in the htaccess in the root.. One exclusive to teh subdir installation and add it before the extant rewrite rules ..
    Can it be set to parse htaccess of each directory first before reading teh root's htaccess ? I guess that should do the trick too

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.