I have this url, http://website.com/?slug=product_info.php&products_id=28
and wanted to rewrite it to:
http://website.com/page/product_info/product_id/28
How to do this using the htaccess or the function “wp_rewrite” of wordpress?
Thank you.
I have this url, http://website.com/?slug=product_info.php&products_id=28
and wanted to rewrite it to:
http://website.com/page/product_info/product_id/28
How to do this using the htaccess or the function “wp_rewrite” of wordpress?
Thank you.
You must be logged in to post a comment.
In the .htaccess file you can try:
This will make it so when you type http://website.com/page/product_info/product_id/28 into your browser’s address bar, it gets rewritten internally on the server into
/?slug=product_info.php&products_id=28
.If you meant the other way around, the rewrite will look like this:
So this will make it so when you type http://website.com/?slug=product_info.php&products_id=28 into your browser’s address bar, it gets rewritten internally on the server into
/page/product_info/product_id/28
.