Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have 2 pages in my wordpress 3.0.1 site with 2 urls

www.mysite.co.uk/sub-page/child-of-sub-page/accommodation/

and

www.mysite.co.uk/accommodation/

however any link in my site to www.mysite.co.uk/accommodation/ goes to www.mysite.co.uk/sub-page/child-of-sub-page/accommodation/ instead

is this a bug in wordpress 3.0.1? or is there a way round this?

share|improve this question
add comment

3 Answers 3

up vote 1 down vote accepted

I'm not seeing this behavior in my test install, using the page hierarchy you have described.

I can access both the top-level accommodation page and the child page. Do you happen to have the Redirection plugin installed?

share|improve this answer
add comment

I believe pages cannot have the same slug, even if the full path is different. This is indeed a limitation in WordPress. I believe others active on this site, like Mike Schinkel, can tell you where the Trac ticket is.

share|improve this answer
add comment

http://www.mysite.co.uk/accommodation/ goes to URL not found so you need to redirect it to the correct URL

You can do this if your theme offers built in 301 redirects or install a plugin to do this. Otherwise cPanel offers redirects

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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