php mysql search dreamweaver
There are plenty of tutorials and articles showing how to use the Apache mod_rewrite module to tidy messy URLs can create nice human readable URLs, the search engine. No problem in the country and if that is what you want you will not find it here.
We're gonna have more trouble finding a tutorial (Other than this one right here) that shows how to remove a query string from a URL. I guess this is a less popular topic, but … however, with something as cryptic as mod_rewrite URL rewriting and the simple appearance can have an age without solid advice so this tutorial will cover the reasons why you may want to do this, together with the simplest and cleanest solution.
Re-Arrange
If you redesiging a site that previously had a URL lot with a chain and get directed to a page you want flat or the root of the site you can find the problem that your address rewriting attached in rewriting.
For example, for instance, we had around 100 different instances of this page with a different text in the variable getVar: oldpage.php? GetVar = allow-remove-this
We try to rewrite it to the root of the site with a rule like RewriteRule: \ ^ oldpage. php $ / [R = 301, L]
His attempts to rewrite oldpage.php? GetVar = allow-remove-east to the main page actually result: /? = GetVar allow-remove-this
Clean up
The solution to this problem is very easy, so much so, you need a single character. How is it done? Ironically, the question mark is the answer. You simply have to modify the original rule by adding a question mark after replacement so / becomes /?
Oldpage RewriteRule ^ \. php $ /? R [= 301, L]
This now rewrite the root oldpage Site and clarifying the query string to have a nice rewrite, clean. The question is the answer!
Marcus Miller is the owner of Bowler Hat Solutions and provides a range of affordable website design and internet marketing solutions for all shapes and sizes of businesses throughout the UK.
Bowler Hat is currently promoting a new and powerful website product that combines consultation, strategy, website design, a content management system, search engine optimisation, search engine marketing and social media marketing for only £1000.00. Visit Bowler Hat Solutions for more information.
404 Error Custom Page

