i need some advice what i´m doing wrong
So i have one Page without a parent page attribute called “bar” with slug “bar”
available at
/bar/
then i have child-pages for example “foo” which have the “bar” page as parent attribute and slug is “foo”
available at
/bar/foo/
but also at
/foo/
is this the standard-behaviour of wordpress ?
do i have to make .htaccess rewrite-rules for every single page ?
is there any option i need to check ?
i´m using wordpress 3.6.1
You will find the ‘rewrite rule generator’ of wordpress in settings / permalinks.
However, if you need more customization, you can do it on a per page / article basis with the edit link located next to the permalink under the page title. Warning: this edit button is only available if you did not choose ‘custom structure’ in wordpress permalink settings.
If this solution is still limited for you, you can edit the .htaccess of your wordpress site to add your own rewrite rules.
This is the standard behavior of WordPress. Normally permalinks of sub pages contain the slug of its parent page just before the sub page slug. If we try to go for a permalink without the parent page slug it will redirect automatically to the permalink structure with parent page slug.