Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Hi I am running WordPress latest version,

I have set the Permalink options as

post url : /%year%/%month%/%day%/postname%/$post_id%/

category : pages

Tags: topics

Now when I click on any category or page url like

http://mydomain.com/pages/wordpress  

will redirected to the page url which contain 'wordpress'

I was working in my developemnt env. but on live its behav like this. I have two wordpress installations, both have the same problem.

Why it is redirecting ??

Not yet installed any redirection plugins.....

share|improve this question

closed as too localized by toscho Jul 22 '12 at 22:51

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

1 Answer

First, this is a mistake :

$post_id%

Should Be:

%post_id%

Anyhow, Please note note:
You should either use /%postname%/ or /%post_id%/ and not both.

the right structure and (altough i wouldnot include date in url at all) is this:

/%year%/%month%/%day%/%postname%/

or this..

/%year%/%month%/%day%/%post_id%/

But not the two values toghter

share|improve this answer
No that was only a typing mistakes. with out trailing post_id its not correct. – coderex Nov 8 '11 at 8:36
i think the problem is somewhere else. – coderex Nov 8 '11 at 8:37
What do you mean? that is the problem.. use either /%post_id%/ or /%postname%/ - Not both of them.. - you can read and view examples here: codex.wordpress.org/Using_Permalinks – Sagive SEO Nov 8 '11 at 9:02

Not the answer you're looking for? Browse other questions tagged or ask your own question.