I am presently experimentation having a WordPress website that utilizes an altered search.php file to exhibit dynamic webpages.

Whenever a search phrase is joined it creates a URL much like:


Can you really give a rule(s) to my .htaccess file that changes the end result URL into some thing friendly without effecting the search.php function? Eg:


or, better still:

example.com/BLOG Title/search-term.html

Thank you for any help.

I do not think you are able to accomplish this without .html or other trick, because automatically Wordpress uses clean Web addresses for posts, which means you can't mess the functionality, but that you can do something similar to this:

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /blog_name/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ([^/]+)\.html$ ./?s=$1 [L]