Skip navigation

Battle: Permalinks Versus Folder Links

I recently switched one of my blogs to permalinks, the links which turn:


I went through the Page slugs for a few of my pseudo-static pages such as About Us and Contact, and decided to shorten the Page slugs. For example, I wanted the Page titled “All About Us” to have a permalink URL of

Everything went fine until I decided to change:


I thought it was a nice move, shortening the name and URL. However it backfired.

The problem is that I have a directory for Inside the directory are all the image files for my gallery Page.

Click on the Gallery link and it displays the file list of all the files within that folder. It certainly wasn’t the pretty gallery design and collection of images on a Page I’d so carefully crafted.

I went back in to the WordPress Pages panel and changed the post slug back. Once again, visitors can see pretty pictures on a web page not a list of files.

Take care in choosing your Page slugs in WordPress or other blogging programs which use permalinks. If they match your file directory, you could be showing off more than you want people to see. When you change the Page slugs, test them thoroughly to make sure they go where you want them to go.

Related Articles

Site Search Tags: , , , , , , , , , , , ,
Copyright Lorelle VanFossen, member of the 9Rules Network Feed on Lorelle on WordPress Subscribe

Member of the 9Rules Blogging Network


  1. Posted March 21, 2007 at 11:12 am | Permalink

    Lorelle, a solution to that would be to first do a search and replace for /gallery/ on your blog to a new folder name(which you would have renamed) and then create the gallery slug.

    I did that to my blog when I got fedup of the piles of files in wp-content as the structure was from the pre 2.x days.

  2. Posted March 21, 2007 at 12:47 pm | Permalink

    Just for the record: if like me (apparently because of hosting provider server settings) one cannot go for the true permalinks but only for the /index.php/gallery, then I guess there is no problem in that case.

  3. Posted March 21, 2007 at 3:42 pm | Permalink

    Good point. I have my site setup to show permalinks for posts after the prefix “/blog”, so the site will show a post called “gallery” as [example]: [using your site as an example as I don’t want to spam]

    and the gallery will show as

    I am guessing, like you said, one needs to plan well. I myself chose the “blog/” structure just because I wanted to have something unique for posts and not confuse posts with the rest of the site. Reading your post, I am happy that I [hopefully] made a good choice.

  4. Posted March 21, 2007 at 8:27 pm | Permalink

    Might want to check out this tip from Daniel Speed Up Your Site – Use Slashes on Your Links. The comments alone make it worth reading.

  5. Posted March 27, 2007 at 4:02 pm | Permalink

    It might be too late now, but I also think the date isn’t needed in the URL. The date can help prevent duplicate URLs from being created, but a little care in naming posts can take of that too. Having a date in the path just makes previous posts look old increasing the chance that they’ll be ignored if they show up in search results. Just an opinion of course…

  6. Posted April 26, 2007 at 9:46 pm | Permalink

    You are right. The date does not have to be in the URL. However, there are a few reasons why it should be.

    If your content is date-oriented, it helps to date the content.
    If your content is covered under the ISBN or other “published matter” licensing or registration, it must have some “obvious and blatant” (I think those are close to the words) date associated with the posts in line with published print material. Like a magazine “issue” date.
    It prevents screw-ups with using the same post title. With the date, the title stays unique, even if you repeat the title “I have a great idea” 46 times. 😉

    If none of those apply, you do not need dates in your URL.

3 Trackbacks/Pingbacks

  1. […] Battle: Permalinks Versus Folder Links […]

  2. […] Battle: Permalinks Versus Folder Links […]

  3. […] Battle: Permalinks Versus Folder Links […]

Post a Comment

Required fields are marked *

%d bloggers like this: