Forums

MOD REWRITE RULE for sub sites to display under root (9 posts)

  1. vinothgkannan
    Member
    Posted 10 months ago #

    Hi,
    I am new to WordPress.
    My wordpress installation on server is http://xxx.com/blogs
    I added 2 more sites using multisite subfolders like
    http://xxx.com/blogs/subsite1
    http://xxx.com/blogs/subsite2

    Is it possible to view the http://xxx.com/blogs/subsite1 through http://xxx.com/subsite1? Do I need to write some mod_rewrite rule on http://xxx.com/.htaccess?

    Is anybody face the same problem before?
    Guide me to access the subsite through main URL.

    Thanks in Advance
    Vinoth

  2. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 10 months ago #

    You can't do it without some fancy apache trickery.

    Best way is to have installed in xxx.com instead of xxx.com/blogs

    Moving is a bit of a pain in the butt, but it CAN be done.

  3. vinothgkannan
    Member
    Posted 10 months ago #

    Hi Ipstenu,
    Thanks for your reply.
    I can't move the xxx.com/blogs to xxx.com, because I already have a main website in smarty framework on xxx.com.
    Please suggest me to do some apache tricks

  4. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 10 months ago #

    Look up "apache redirect folder" (NOT the .htaccess one).

  5. vinothgkannan
    Member
    Posted 10 months ago #

    You mean the MOD Rewrite conditions?

  6. vinothgkannan
    Member
    Posted 10 months ago #

    Can you provide me the sample code or reference links or any other suggestions

  7. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 10 months ago #

    I don't have any at my fingertips and (if you can't tell) I think it's a kinda bad idea. I'd be way more inclined to name my folder something kicky like...

    domain.com/in/ so all my subsites are domain.com/in/london and so on ;)

  8. McPace
    Member
    Posted 10 months ago #

    I have a similar problem, I have my MU install at root with blog 1 having a page named x.com/events, I want to create blog 2 that lives at /events. So any post on blog 2 lives at x.com/events/slug, but if you visit x.com/events you get the page from blog 1.

    I tested by creating a new blog and it defaults to showing blog 2 at /events instead of the page on blog 1. Is there anyway to get wordpress to show the page from blog 1 when hitting /events?

  9. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 10 months ago #

    McPace - totally separate problem.

    You can't have a page AND a blog with the same name. Rename one.

Reply

You must log in to post.

About this Topic