How can I remove the "blog" part of my URLs?
-
For some reason, my website is set up using the directory “blog” after the domain name in the URL. (e.g. http://mydomain.org/blog/category/categoryslug/) I’d like to remove that “blog” to shorten my URLS. Is this easy to do? Can someone give me a link to instructions or paste them here?
Also, I am trying to create a separate archive template for certain categories. I’ve done this on another blog so I know it works. But for some reason, the category #s I have are not showing up with the correct template. Here is the code I am using to direct to the correct templates:
<?php if ( have_posts() ) { the_post(); rewind_posts(); } if ( in_category(6,14,15,16,17,18,19,20) ) { include(TEMPLATEPATH . '/archiveshousing.php'); } else { include(TEMPLATEPATH . '/archives.php'); } ?>
But for all those categories listed, it shows the archives.php not the archiveshousing.php.
Any tips? Here’s my site if you need to view it, but most of the sections I am working on are set as private at the moment.
- The topic ‘How can I remove the "blog" part of my URLs?’ is closed to new replies.