Rewriting Custom page with .htaccess
-
I am currently developing a WordPress website. It’s a project that was passed to me from an ex-employee. So forgive my lack of WordPress knowledge as I’m new to this and learning as I go along.
I have a 2 custom pages which is in the root WordPress folder but is not part of any WordPress templates or file structure. The files are a simple list of some dynamic url links which go to the relevant WordPress custom pages on the site. I want to change the final url which directs to my WordPress page.So I would like
mydomain.co.uk/page-name/value1/walue2.html to redirect to
mydomain.co.uk/value1/value2.htmlIdeally I want to use .htaccess to achieve this. How can this be done? Also, where within the WordPress section of the .htaccess file should any rewriting be placed? I’ve found a selection of positions so a bit confused.
This is a breakdown of the structure of what I’m trying to achieve.
custom file1 => custom file2 -> WordPress custom page
Any help would be greatly appreciated.
- The topic ‘Rewriting Custom page with .htaccess’ is closed to new replies.