Rewrite rule parameter htaccess from custom CMS to Wordpress - wordpress

I am moving a website from a custom CMS to wordpress and have an issue with some custom rewrite URL that I need to match for SEO purpose.
Original url looks something like this
/search?Filter=filter1,filtervalue1&Filter=filter1,filtervalue2
filter1 correspond to a WP Taxonomy
filtervalue x correspond to the taxonomy term to search for.
In this original URL, mulitple can be added, so the URL can expand indefinitely, like Filter=filter1,filtervalue1&Filter=filter1,filtervalue2&Filter=filter4,filtervalue6&Filter=filter8,filtervalue25 etc etc
I need to find a way of Rewriting the url to match the taxonomies in Wordpress, so in some way extract each value of Filter= and then the taxonomies
something like
/search?filter1=filtervalue1+filtervalue2&filter4=filtervalue6 etc etc
I can't get my head around it and will appreciate some help
thanks in advance

Related

Custom taxonomy rewrite rule

Hello i want to change the default WordPress categories url i tried but i don't know how to do it
can you guys please help me with that..
This is my admin URL of default post category here post type=post
/wp-admin/edit-tags.php?taxonomy=category
example of my categories list
cloths, shirt, goggles etc...
suppose current my fronted link for taxonomy url is like
example.com/shirt
example.com/cloths
example.com/goggles
but i want to modify it... like below
example.com/ethic/shirt
example.com/ethic/cloths
example.com/ethic/goggles
And post Url must be followed same as below
example.com/res-full-shirt
example.com/blackfull-goggles
I think, these permalink settings will do the job.

WordPress Page URL rewrite Issue

I need to rewrite wordpress URL.
Currently My URL is : http://www.example.com/about/?pagekey=team1
and I need like ; http://www.example.com/about/team1
Here About is one page template and I've setup for wordpress custom parameter so, when you pass pagekey to this page it will take key and based on that display result.
Now, I need to show user friendly, can anybody have idea how to do this.
currently my parmalink is set to "PostName".
Thanks.
You should follow the WordPress codex here and create 2 files:
page-about.php
single-about.php (this one will be for the teams)
you should create CPT (custom post type) with all the custom post type fields you need for this eg.
Name,
Title,
Position,
Image,
Tag,
Taxonomy,
.... etc
then you will pass the custom post type query (the query) before the loop and you will be able to access the single-about.php from page-about.php
that'all.
Cheers and hope this helps

How to embed a string in permalink structure ?

I am creating a custom tours and travel theme in which I have created custom post type Cities, Locations, Destinations and i am using custom permalink structure. /%category%/%postname%/
So now I want to append a state name or district name before that city, destination or location name. Let me make it more clear by giving you an example .
the current url structure is like this
and how I want it to be
In the beginning i created a custom taxonomy but some time's city, destination and location slug clashes with custom taxonomy slugs and right now I am working with rewrite rules so is it possible by creating a new rewrite rules or do I have to do something else.
I'm not a Wordpress specialist, but maybe this wordpress oriented stackexchange site would be of more assistance: How to create Custom URL Routes in Wordpress
Hope this helps !

Wordpress Custom URL rewriting

I need little help for url rewriting in wordpress.
basically what i need:
mydomain.com/mysomewordpresspost
mydomain.com/parentpage/subpage
to
mydomain.com/global/mysomewordpresspost.
mydomain.com/global/subpage
Basically want to add "global" in url
and also for subpages, categories, post etc etc.
mean all long url short to "global"
No want to show categorname in url and parent page name in url.
You can do this easily, Just add like this in your Permalink Settings->Custom Structure
/global/%postname%/

Wordpress, two URLs for the same post

Is it possible to have two URL for a same post in wordpress.com?
One would be a short URL like
http://mydomain.com/28
and the other will be a SEO friendly one:
http://mydomain.com/28-this-is-the-post-about...
thanks
In wordpress, all posts are at the URL mywordpresshome.com/?p=xx where xx is the post ID number. Anything else involves mod_rewrite. WordPress will do one type of rewrite for you in the Admin section -- so you can pick either the short version or the long one above. In the Admin interface, it won't let you do both. But you could edit mod_rewrite yourself and effectively get both patterns -- short and long -- to work.
Here's info on mod_rewrite: http://www.workingwith.me.uk/articles/scripting/mod_rewrite
In the Settings->Permalinks part of the admin panel, you can set the look of your permalinks, but that doesn't mean the default dynamic links (yourblog.com/?p=5 or whatever) will stop working. You can use those links too and they will take you to the corresponding page. However, Wordpress will automatically substitute the dynamic link by its SEO-friendly alias.
I'm not sure whether it's possible to have two different aliases for the same post though.

Resources