I've got a site whose webpage shows just one Wordpress category page. I am utilizing a custom theme and also the index.php file there does a 301 redirect to "mysitename.com/?cat=3". This site is produced by having an event calendar wordpress plugin and lots of custom code. It really works, however the displayed URL is "mysitename.com/?cat=3" which I'd prefer my site visitors avoid seeing I'd favour the URL be just "mysitename.com", "mysitename.com/index.php", as well as "mysitename.com/calendar".

The customer can observe "prev month" and "the following monthInch, which lead to Web addresses like "mysitename.com?cat=3&eventDate=2010-07&bt=a" -- still inside the same category however with additional parameters within the URL. (I am OK getting a far more convoluted URL such as this proven to my site visitors on previous/the following month it is simply the first page URL Let me be better.)

I have screwed around using the permalinks but can't get nice Web addresses to operate properly this way. Can there be an .htaccess method of doing this?

Within the "permalinks" section underneath the "Configurations" tab, you can include a category base towards the groups.

Thus for those who have a category base of "category" along with a category title "Awesome Stuff" having a slug of "awesome_stuff"

Your category link would link such as this based on your permalink configurations.


Okay. My Last answer wasn't base in your "edited question".

Should you take away the 301 redirect to "mysitename.com/?cat=3" you are able to edit the index.php file.

This will in all probability take proper care of your url problem.

You are able to edit the loop to exhibit only groups from id: 3

Thus, you'll make a querypost for category 3 as follow:

<?php query_posts('showposts=9'); ?>

See Query Post @ Wordpress for more information.

Put this prior to the loop.

The coding may seem like this:

<?php query_posts('cat=3'); ?>
<?php if (have_posts()) {?>
    <?php while (have_posts()) : the_post(); ?>
            <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a>
            <span style="float: right;"><?php the_time('m/d/y'); ?></span>
<?php endwhile; }?>

You could utilize .htaccess to map mywebsite.com/calendar to mywebsite/?cat=3, but WordPress will still consider the original hyperlink to discover which category to make use of, which means this won't work.

It is best to try looking in the code from the wordpress plugin to discover the way it will get the present category, and perhaps trick it (by an additional call to query_posts('cat=3')) to consider we're searching in the url for category 3 (you don't have to display the posts, simply do the query). You may also do that in your home page (but maybe use home.php, not index.php, because the latter is really a fallback for other template pages), so you do not need a redirect. The answer is you need to consider the code of the wordpress plugin (do you know us the title?) to discover how it operates.