Redirecting to attachment pages of the same name
-
There is a web site with multilevel structure. Permalink Manager Lite is used to remove all parents slugs from URL and make it look like domain.tld/page-name.
The case. An example:
1) There is a page https://www.new.gorodprava.ru/yuridicheskoe-soprovozhdenie-organizacii/ with links in content text. Links are inserted into href=”” in form of slugs (like rastorzhenie-braka, nalogovye-spory – since there is no extension used), not full path.
2) There is an image file nalogovye-spory.svg with the slug being the same as the slug of a page.
3) Clicking <a href=”nalogovye-spory”>предприятиями</a> link redirects to the attachment page https://www.new.gorodprava.ru/glavnaya/nalogovye-spory/ , not to https://www.new.gorodprava.ru/nalogovye-spory/ as it is supposed to do.
Note: In Tools –> Permalink Manager –> Settings –> Exclusion settings –> Exclude content types checkbox Media is selected. When it is not selected, redirects behave just the same.
- The topic ‘Redirecting to attachment pages of the same name’ is closed to new replies.