cyrillsneer
Member
Posted 4 years ago #
I was wondering if i could get some advice as i am a little lost...
I would like to persuade wordpress to display all my posts in the following URL format..
http://www.domain.com/static folder name/category1/posttitle
1) Can i specify a static folder name, even if doesn't exist as a live category? If so how?
2) Can i dynamically generate a second folder based upon the main category that the post is in?
I keep trying to do this but every time i mess it up.
Thanks
Custom Permalinks (See Permalinks for documentation)
Perhaps something like /FolderName/%category%/%postname%/ ?
adeelshahid
Member
Posted 4 years ago #
go to Options > Permalinks inside your WordPress admin and write the above code my HandySolo to make custom url available inside your WordPress blog.
adeelshahid
Member
Posted 4 years ago #
if the above
/FolderName/%category%/%postname%/
did'nt work for the permalinks then try this below, i tested it b4e posting,
/index.php/%category%/%postname%/
Side note: you only need to include "index.php" in a permalink string if your host doesn't support mod_rewrite.
cyrillsneer
Member
Posted 4 years ago #
Sweet, i removed the %category% as some of the posts are in three, four or more categories so it started getting a little too deep for seo.
But thank you so much.