I’ve an issue with some web page URLs.
The web page URL construction is like this:
www.instance.com/wp/custom-taxonomy/somepagename/?token=12345
I need that once I entry the URL above to redirect me to:
www.instance.com/wp/custom-taxonomy/somepagename/
In /wp/
is WordPress put in. I attempted this in .htaccess
:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wp/
RewriteCond %{query_string} ^token=12345
RewriteRule (.*) /$1? [R=301,L]
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wp/index.php [L]
</IfModule>
nevertheless it redirects me to:
www.instance.com/custom-taxonomy/somepagename
Any concepts?
Later edit:
/wp/
– the folder the place WordPress is put in;
/custom-taxonomy/
– a {custom} taxonomy, like /companions/
the place I enter all my companions.
/somepagename
– a dynamic web page, like /xyz-ltd
, /abcd...
dynamic pages created for the {custom} taxonomy.
I can’t put a rule for each web page, would wish a basic rule to take away the question string.