Click here to Skip to main content
15,907,687 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi there,

Thank you for any pointers that may be able to help me :)

I'm trying to rewrite a dynamic wordpress url using mod_rewrite in my htaccess file..

detail?series_id=1&wpda_search_column_series_id=1

To this..

nice-url-instead

What I have tried:

I've tried this htaccess code..

RewriteEngine on
RewriteRule ^nice-url-instead$ detail?series_id=1&wpda_search_column_series_id=1


But I just get a page not found in wordpress.

So basically I just want the page that's normally returned fine here..

detail?series_id=1&wpda_search_column_series_id=1

Rewritten so that that page appears under the cleaner url..

nice-url-instead

Feels like it should be do-able but I'm kind of hacking my way through if I'm honest!

Thanks!
Posted
Updated 1-Jun-22 4:52am
v2

1 solution

Sometimes using a 301 redirect plugin can work around this issue.

It is also worth noting that if you have a deleted post or page in the Bin area ( At the top section) This will need to be cleared out of the bin, if it holds a page / URL that you are looking to redirect to.

Apart from the above, the post itself should be editable via the Permalink / URL. Then you can add a redirect rule via a 301 redirect plugin from the old URL to the new cleaner one.

Hope this helps

Redirection – WordPress plugin | WordPress.org English (UK)[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900