Welcome to WebmasterWorld Guest from 54.160.254.203

Forum Moderators: rogerd & travelin cat

Message Too Old, No Replies

Wordpress permalink for blog posts

     
11:37 am on May 6, 2012 (gmt 0)

New User

joined:Apr 25, 2012
posts: 20
votes: 0


Hi Guys,
Need advise.
 
I have permalink set to post name "%post name%" that is ok for me however  I want all my blog post
should display like this.
 
Domain name/blog/postname >>> blog post name
 
What changes I need to make in my word press .. i.e to create a folder [ how to do that] or any other option in Wordpress.
 
Please assist.
 
Thanks
NJ
11:43 am on May 6, 2012 (gmt 0)

Senior Member

WebmasterWorld Senior Member tigger is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 16, 2000
posts:3558
votes: 0


do the following

in the WP settings click settings / permalinks - then tick custom ....job done ;o)
11:57 am on May 6, 2012 (gmt 0)

New User

joined:Apr 25, 2012
posts: 20
votes: 0


i have already done this but i want only blog post will show blog + post name in the URL.
12:09 pm on May 6, 2012 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member lorax is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Mar 31, 2002
posts:7575
votes: 0


Assuming "blog" is a category name than /%category%/%postname%/

[codex.wordpress.org...]
12:14 pm on May 6, 2012 (gmt 0)

New User

joined:Apr 25, 2012
posts: 20
votes: 0


thanks but i want only blog category to display in the URL not any other categories.. i have quite few categories but i dont want them to display in URL.
6:58 pm on May 6, 2012 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member lorax is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Mar 31, 2002
posts:7575
votes: 0


Then you'll need to write you're own custom URL using mod-rewrite and the htaccess file. I'm not sure you can even do it though I suspect it can be done.
11:42 am on May 8, 2012 (gmt 0)

New User

joined:Apr 25, 2012
posts:20
votes: 0


i want some thing like this.

here is the example.

domainname.com/what-is-noun.html [ at present it looks like this ... Permalink set to post name .. which is good anyway]

but i want this way for some posts only..
domainname.com/blog/what-is-noun.html [ i want this for some posts only which i can put at my blog page.. ]
3:27 pm on May 9, 2012 (gmt 0)

Senior Member

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Nov 28, 2004
posts:7999
votes: 0


I don't know why you'd need to do this "for some posts only" - if you have "pages" and "blog pages" and they are both driven by Wordpress, I don't see how it's possible. You can **try** making the permalink on the documents example.com/blog/postname but I don't think W.P. will allow you to.

If the pages are **not** driven by Wordpress, you can move the entire bolg into a /blog directory, but you won't be able to do example.com/postname any more, they will all be example.com/blog/postname.
5:51 am on May 10, 2012 (gmt 0)

New User

5+ Year Member

joined:July 31, 2006
posts: 39
votes: 0


You will probably have to make use of a plugin to do this. Look at some of the permalink plugins available on wordpress.org. You are basically looking for a plugin that allows you to set different permalinks based on category.
1:27 pm on May 15, 2012 (gmt 0)

New User

joined:May 15, 2012
posts:2
votes: 0


The best permalink structure worked for me on most of my sites is:
domain.com/postname/postid
11:46 am on June 6, 2012 (gmt 0)

New User

joined:Apr 25, 2012
posts:20
votes: 0


Thanks Guys, i am using custom permalink on my wordpress site
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members