I want to incorporate mod_rewrite to make use of a rotator file that contains links for various keyword phrases. Thus I can add a few new pages of content to my site (on the fly) using the search results generated.
In other words, turn a query like this:
...into a static URL like one of these:
All files on the site are in .php and a static link in the rotator would be:
...and again the objective is to elicit a search results page by clicking on one of the links.
The site's template, the rotator script and Zoom are in place and working. I believe all that's needed is the mod_rewrite. Hopefully I could also use it to add matching titles, heading tags, etc. as needed.
This is what I'm attempting to use now, though it has no effect on the URLs:
Any suggestions would be appreciated.
.
In other words, turn a query like this:
PHP Code:
www.mywebsite.net/meso-search.php?zoom_query=alternative+cancer+cure
PHP Code:
www.mywebsite.net/alternative-cancer-cure
www.mywebsite.net/alternative-cancer-cure.php
PHP Code:
"/alternative-cancer-cure.php">Alternative Cancer Cure</a>
The site's template, the rotator script and Zoom are in place and working. I believe all that's needed is the mod_rewrite. Hopefully I could also use it to add matching titles, heading tags, etc. as needed.
This is what I'm attempting to use now, though it has no effect on the URLs:
PHP Code:
RewriteEngine On
RewriteRule ^([^-]*)\.php$ /meso-search.php?zoom_query=$1 [L]
.
Comment