Old URI structure--what is it? (6 posts)

  1. thepete
    Posted 10 years ago #

    I'm using 1.5, but have created a page that uses mookitty's show-cats plugin for showing only specific categories. I want this page to feature only a handfull of categories and to be essentially cut off from the rest of the categories. The problem is when I want to link to specific categories using this separate template, I need to know the old URI structure so when users click on the category links they stay with the right main php file.

    For instance, I use index.php for my main site. When I go to view a single category here's the URI structure:

    The problem is, when I link to that from my new main.php page (which will only display certain categories), it uses the index.php page as the base/template/theme/whatever for the page it displays. I am hoping that I can use the old URI structure. The catch there is, I have no recolection what it was. Also, I'm not sure if it still works under 1.5 when I've chosen to use the "nice" looking permalinks.

    I have searched the codex, the old wiki and this forum, but can't seem to find anything that directly references the old structure. (that looks something like this: "index.php?categorynumber=521")

    Any help would be greatly appreciated. Thanks!

  2. oriecat
    Posted 10 years ago #

    I have a couple of links to categories using the 'old' structure and they go blogurl/index.php?cat=#

  3. thepete
    Posted 10 years ago #

    Cool thanks! Alas, I tried it with main.php and it doesn't work--it does work with my regular index.php, but not main.php. Does that make any sense at all? I may have to make a different page for each category or perhaps try switching main.php back to index.php and putting the lot in a subdirectory. Siiigh... I guess those will work unless anyone has a suggestion for how to get main.php?cat=# to work like index.php?cat=# does...

    Again, Oriecat, thanks!

  4. thepete
    Posted 10 years ago #

    This is very strange--so I've put the renamed main.php to index.php and stuck it into a subdirectory. I changed




    Now I just get a blank page when I open the URI in a browser.

    Any ideas?

    I tried renaming it back to main.php and same blank page. I moved it back into the root and the page loads fine. Any advice would be appreciated as always! Thanks!

  5. oriecat
    Posted 10 years ago #

    Why are you using main.php? Have you tried using home.php for the front page, and then using index for the others?

  6. thepete
    Posted 10 years ago #

    I just wanted something that sounded "official" since I'll be pointing another domain at this particular page. I've actually sussed out the problem, strangely--I simply pulled the following code out of the page, itself:

    <link rel="stylesheet" type="text/css" media="print" href="<?php echo get_settings('siteurl'); ?>./print.css" />
    <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
    <link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />

    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    <?php wp_get_archives('type=monthly&format=link'); ?>
    <?php //comments_popup_script(); // off by default ?>
    <?php wp_head(); ?>

    Can't explain why, bute that was screwing things up. Now the page loads fine.

    But thanks anway! I do appreciate you taking a moment to ponder my perdicament.

Topic Closed

This topic has been closed to new replies.

About this Topic