possibly ridiculous url re-write question (4 posts)

  1. punknomad
    Posted 3 years ago #

    ok, i've been trying to wrap this around my head for hours now, and i haven't been able to come up with a solution, so i'm tossing it out there for anyone that might be able to help.

    here's the scenario:

    A: i am using the xenforo message board software on my root directory (and i would preferably like to keep it there).

    B: i have a wordpress install at mydomain.com/blog.

    C: i would like to have the podcast im starting up soon at mydomain.com/podcast.

    it seems that my two choices are:

    1. put a separate wp install in each directory.
    2. use some kind of crazy url rewrite rules in my .htaccess file.

    i've been researching the second option, since id like to have both the podcast and blog in the same wp install, that way when i use plugins like the jetpack subscriptions, my audience doesn't have to submit their email to two different widgets to get updates about new podcast episodes and blog posts. the same goes for RSS feeds, i'd like to not have to have two different rss feeds (one from each install).

    so, ive created the folder mydomain.com/podcast, and set up a .htaccess file there, to redirect to mydomain.com/blog/podcast using this rewrite rule:

    Options +FollowSymLinks
    RewriteEngine On
    RewriteRule ^(.*)$ http://mydomain.com/blog/podcast/$1 [R=301,L]

    this works fine, but the url shows up in my browser as mydomain.com/blog/podcast instead of mydomain.com/podcast, so that's problem #1.

    problem #2 is that i don't know how to get my already existing podcast posts at mydomain.com/blog/podcast to use the same url structure as mydomain.com/podcast.

    it seems this all gets super complicated when you don't want to use wordpress at the root of your server.

    am i over complicating this? is there an easier way to do this? id just move my forum to /forum and /blog to root, but 90% of the activity happens in the forum, so i kinda want that to be the first thing people see.

    any advice would be appreciated! thanks!

  2. s_ha_dum
    Posted 3 years ago #

    it seems this all gets super complicated when you don't want to use wordpress at the root of your server.

    But that is a gross oversimplification of what you are doing. You want to run WordPress in one subdirectory, which is easy. It works as well as runing it in root. But you also want to make it appear that some parts of that WordPress install show up in a completely different subdirectory. I've never done that but I am comfortable that it is hard.

    This a rough draft but this is probably how I'd approach this. WordPress will share root with other software if there are no file name conflicts. Other than index.php, there probably aren't any conflicts, so the first thing I'd be asking myself is "can I modify the index.php so that it can handle both the xenforo board and WordPress?"

  3. punknomad
    Posted 3 years ago #

    ugh, that sounds painful :P

    yeah im reconsidering my priorities and will most likely put wp in the root, and the forums in /forums, but id still like to hear ideas if anyone has them.

  4. s_ha_dum
    Posted 3 years ago #

    ... a lot less painful than what you are trying to do.

Topic Closed

This topic has been closed to new replies.

About this Topic