close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

I wan to hide &Search=Search or somehow display a more professional friendly url

Thread began 1/20/2017 6:08 pm by jo271221 | Last modified 2/06/2017 1:49 pm by Ray Borduin | 302 views | 7 replies |

jo271221

I wan to hide &Search=Search or somehow display a more professional friendly url

I want to hide the &Search=Search and possibly even do some url rewriting
1. Is there a simple resolution to hide the &Search=Search and still clear the search. I am linking to numerous variables of my results page in my site.

Sign in to reply to this post

Ray BorduinWebAssist

You could pick any random end to the url like: /new to signify a cleared search and then use .htaccess to mod rewrite and add the Search parameter there and it won't ever be visible.

Sign in to reply to this post

jo271221

Thank You! Do you have any examples or reference links? I am not clear on how to write the code for the htacess?

Sign in to reply to this post

Ray BorduinWebAssist

What is a url where I can see the link you are trying to rewrite?

Sign in to reply to this post

jo271221

hide search=search

I have pasted the url below. along with ftp and database access.

Sign in to reply to this post

Ray BorduinWebAssist

If you are always passing the variable triplecrown when resetting the search then you can just remove the Search part and change the Database Search trigger to use triplecrown instead.

Sign in to reply to this post

jo271221

The variables change
posts_horse.php?&post_type_horse= Horse Wanted&Search=Search
http://performancehorsehotline.com/posts_horse.php?&post_type=Horses+For+Sale&Search=Search
posts_horse.php?&post_type_horse= Horse Wanted/
posts_horse.php?&post_type_horse= For Sale/

and for the htaccess ?
RewriteRule ^posts_horse/?$ posts_horse.php [NC,L] # Handle requests for "posts_horse"
I sitll want to be able to display the text Wanted or For Sale, I am looking for a rule to simply state on all searched records display / in place of &Search=Search
And of course we still need the previous search to be cleared.

Sign in to reply to this post

Ray BorduinWebAssist

Please attach a copy of the posts_horse.php page. I think I'd still use the trigger rather than .htaccess. I'll help you with the syntax once I have the file.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...