The MU forums have moved to WordPress.org

help with url rewriting / rewrite.php (6 posts)

  1. stickwithjosh
    Member
    Posted 19 years ago #

    I have a 2,000 member site using domain.com/username for their blogs.

    I'm developing some sections that will need to use the home template that is used for domain.com and not the template used for domain.com/username, it will also need some functions I've written for the front page.

    This page is going to live at the url domain.com/all-stars which works great! until I include wp-config.php in order to have the same footers / headers / functions that I have on my front page (domain.com)...It just forwards me to the "no blog by that name, sign up here" page.

    Any thoughts? Am I being clear enough? I'm thinking there must be a way to include the goodies from wordpress, but not have the url messed with. Perhaps I'm wrong.

    Thanks in advance!

  2. lunabyte
    Member
    Posted 19 years ago #

    Why not just create a blog as all-stars, then have fun with custom page templates and such?

    nobody ever said you "have" to use the loop in a page template. ;)

    Create a new page, pick a template, give it a title you can identify it by, and the slug you want.

    Let the template do the rest.

  3. stickwithjosh
    Member
    Posted 19 years ago #

    That's a thought...It may be limiting though, because I'm building the rest of the navigation out.

    I was looking for something a little more hacky, but I'll give this a shot, and if anyone has other ideas, let me know!

    edit: something I just thought of also, is that if I used the previous solution I would have to keep the theme updated in two places, and this would be a working trouble.

  4. lunabyte
    Member
    Posted 19 years ago #

    It would?
    Why not just use the same theme then?

    Other than the home page, having some extra template files shouldn't be an issue.

    For the 2nd site, you could simply tell it to use a custom home page through the options menu, and it will ignore home.php.

    Navigation shouldn't be an issue, so this seems like it would be a better solution than hacking something together.

    Much less time consuming too.

  5. stickwithjosh
    Member
    Posted 19 years ago #

    Another thought:

    currently we have the all-stars directory in the root of the site, and you can access this through domain.com/blog/all-stars

    is there a place to put this folder that would make it show up at the root ? domain.com/all-stars is where we would like it...

  6. lunabyte
    Member
    Posted 19 years ago #

    Not if you're using it as links through the individual sites, and not excluding it from being part of the entire MU rewriting scheme in htaccess. If so, then it will have the blog name in there, because you set up MU to use sub-directories.

    If you're linking right to it, then that's what it would be.

    Of course, unless you provide more information on exactly what you're doing with this, and why it's "so special", I'll probably start rolling my eyes on it because from the information you've provided thus far, just adding it as a new blog and then customizing from there is by far much simpler.

About this Topic

  • Started 19 years ago by stickwithjosh
  • Latest reply from lunabyte