Welcome! Log In Create A New Profile

Advanced

Searching in Category / 2nd Page in results seems not to be in category

Posted by Emil.Blume 
Searching in Category / 2nd Page in results seems not to be in category
May 11, 2007 09:04PM
When I search in a category, I just get the first page from this category.

It's URL is:

//127.0.0.1/spider/search.php?query=LKW&type=and&results=20&category=3&search=1

After clicking to second result page on the bottom the URL of the resulting page shows:

//127.0.0.1/spider/search.php?query=LKW&start=2&search=1&results=20&type=and&domain=

When I type the following URL manually I get a diffrent result:

//127.0.0.1/spider/search.php?query=LKW&start=2&search=1&results=20&type=and&domain=&category=3
URL rewrite and different search methods
May 11, 2007 09:23PM
After kenrrik was asking for a solution about MOD_REWRITE and nice URLS
in his post http://www.sphider.eu/forum/read.php?2,469
the're should probably a scheme to have all used URLs in the same style.
Meaning parameters of querys always in the same way.

eg.
Query without category:
//127.0.0.1/spider/search.php?category=0&query=LKW&start=1&search=1&results=20&type=and&domain=

Query with category:
//127.0.0.1/spider/search.php?category=1query=LKW&start=1&search=1&results=20&type=and&domain=

This would give the ability to easily build nice URLs like

//127.0.0.1/spider/withoutcategory/LKW/1_1_20.html?type=and&domain=

Or
//127.0.0.1/spider/mycategoryname/LKW/1_1_20.html?type=and&domain=

The Parameters for 1_1_20.html are taken from
start=1&search=1&results=20

This could be a goal to get sites running sphider better indexed.

Since I'am not very familiar with PHP (just started a few days ago)
I hope there is someone who can edit the URL results from searchbox and the paging between resultpages on the bottom of results to get this working.



Edited 1 time(s). Last edit at 05/11/2007 09:25PM by Emil.Blume.
Sorry, only registered users may post in this forum.

Click here to login