SEO URL for Search Page
This purpose of this mods is to enhance the search function to produce a nice SEO url for search engines. The default search result from IndexU is something like this :
http://www.yourindexudomain.com/search.php?keyword=test
http://www.yourindexudomain.com/search.php?pg_which=2&keyword=test
Now with this mods, it will be changed to something like this :
http://www.yourindexudomain.com/search/test
http://www.yourindexudomain.com/search/test/more2.html
The behavior is same as browse tags page that available in IndexU.
Members can download this mods for FREE here (you’ll need to login first).
Please backup your original IndexU files before start !!
Ok, this mods will require 4 file changes :
.htaccess
search.php
/themes/kosmos/header.html
/lib/pagination.class.php
1. Modify .htaccess
Change from :
To :
2. Modify search.php
Change from :
To:
And change from :
To :
3. Modify /lib/pagination.class.php
Add new function in the class :
And change from :
To :
4. Modify /themes/kosmos/header.html
Change from :
To :
Ok, done.
But I think the mods still missing something here, since the search engine cannot click the search button and visit the search result :). We need to show the search term somewhere in the page to make search engine visit them. So my next mods is a simple blocks to show the popular and latest search term, this will be similar to "popular tags" block that already available in IndexU (with colors too ^_^).
Ok, I hope this mods will be useful for you.









