• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 205
  • Last Modified:

WordPress 3 - Permalinks

Hi,
I want my post URLs to be formatted this way:
http://example.com/category/post-name/

and I can do this from:
wp-admin/options-permalink.php by specifying:
/%category%/%postname%

Then why it is not recommended? Please read the following link:
http://ottopress.com/2010/category-in-permalinks-considered-harmful/

Regards
0
rajoo_sharma
Asked:
rajoo_sharma
  • 4
  • 4
  • 2
  • +2
2 Solutions
 
Ray PaseurCommented:
Just don’t start the permalink with %postname%, %category%, %tag%, or %author%. That’s it. That’s the only rule.  So maybe you could do it like this:

http://example.com/permalink/category/post-name/
0
 
JF0Commented:
The author does not recommend it for performance sake (he explains why), but I think you will be just find doing it however you like. I use just %postname% on my sites and they do just fine.
0
 
Jason C. LevineNo oneCommented:
There is a performance hit (as everyone has mentioned) but if you are not hosting a site that expects huge traffic, you can probably get away with it (as JF0 says).  The one caveat is that you can never really know if your site will go viral overnight for whatever reason, so are gambling a little bit with your future traffic.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
rajoo_sharmaAuthor Commented:
Thanks for the reply.

@JF0, when its not recommended for the performance sake then what is the alternative?


@jason,
The website I'm working on is a CMS and not a blogging website. I chose WordPress as a CMS for its simple admin interface and its  easier to explain Content Management to someone who is going to manage the website on his own.

What will happen when the content will grow and site will get good traffic after the SEO stuff?

Do you suggest some alternative to generate nice URLs optimized?

Thanks
0
 
Jason C. LevineNo oneCommented:
If you look at Ray's post, he gives you the solution.  Just put some static text in the permalink:

/content/%category%/%postname%

to generate:

http://www.yoursite.com/content/categoryname/postname

The /content/ avoids the issue mentioned in the linked article.
0
 
rajoo_sharmaAuthor Commented:
Thanks,
@Ray, @Jason, so prefixing something like content will fix the performance problem?

I need nice URLs for SEO purposes and my content will be categorized too (although not related to this issue / post at all, I'm using custom posts over pages to handle another performance issue since I'll have many pages).

I've been using Drupal for so many years and comfortable with it. Like any other good CMS, this too implements Nice URLs and there is no performance issue.

The zen-cart too (CEON URI module) has no problem (performance wise) for URL rewrite.

So is there any workaround? or a proper plug-in kind of solution that gives nice URLs without performance issue?

Thanks
0
 
Jason C. LevineNo oneCommented:
Again, just add the static text and that fixes the issue...
0
 
gwkgCommented:
I use the year of the post

%year%

you can also use post_id

%post_id%

But like he explains, it's only a problem if your site has a lot of pages (30+)

0
 
rajoo_sharmaAuthor Commented:
Hi qwkg,

To overcome the problem of having lots of pages, I'm already using custom post instead of pages.

Thanks
0
 
gwkgCommented:
When you start your permalinks with %category%  Wordpress creates a new Rewrite rule for each Page.  When Wordpress needs to retrieve content, it compares the permalink to these rules one by one until it finds a match.

If you have limited your pages, then this shouldn't be a problem.
0
 
Jason C. LevineNo oneCommented:
My limit for pages is 50.  If my site has fewer than 50 pages I'm good.  More than 50, and I'm using the numerical slugs.
0
 
rajoo_sharmaAuthor Commented:
Thank you guys, I said the solution was partially easy to follow not because the answer was ambiguous, it was because the way WordPress parses the permalinks.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 4
  • 4
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now