Mobile app version of vmapp.org
Login or Join
Candy875

: Hide query parameters in RewriteRule I have the following rule: RewriteRule ^farm-products/([A-Za-z0-9-]+)/([0-9]+)/([A-Za-z0-9-]+)/([0-9]+)/([0-9]+)/?$ products.php?&page=&what=&t=&cat=

@Candy875

Posted in: #ModRewrite #Url #UrlRewriting

I have the following rule:

RewriteRule ^farm-products/([A-Za-z0-9-]+)/([0-9]+)/([A-Za-z0-9-]+)/([0-9]+)/([0-9]+)/?$ products.php?&page=&what=&t=&cat=


The user sees:
www.example.com/farm-products/agencies/56/b/88/32458

Is it possible to hide from the URL the query parameters?

I want to show only:
www.example.com/farm-products/agencies/

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Candy875

1 Comments

Sorted by latest first Latest Oldest Best

 

@Si4351233

It depends on your CMS that you are using.

However, most likely the answer is that you cannot do that easily at least. The CMS would need to be modified to do the category / product lookups using the their titles instead of identifiers. This might take quite some effort.

You need to discuss this issue with your CMS developer.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme