PDA

View Full Version : [SEO-Friendly Search] Mod


VSDan
01-11-2006, 08:10 PM
Description: SEO-friendly search results pages.

Demo: http://www.monster-submit.com/directory/
1. Enter search term: webmaster
2. Click on the [search] button
3. Right-click on page to view page properties (with Microsoft Internet Explorer browser anyways). You should see page URL as: http://www.monster-submit.com/directory/search-webmaster.html

Download: http://www.monster-submit.com/phpld/


To download this and other VS mods, please go here : VS phpLD Mods (http://www.monster-submit.com/phpld/)

gustotelmy
01-11-2006, 09:24 PM
dude you rock! thank you for all these mods you have that i have wanted to try thanks! :D

VSDan
01-11-2006, 09:30 PM
Thanks, and you're welcome! This one will probably require some modification of the Rewrites to get it just right to take into account a variety of factors, but works thus far =)

Neticus
01-11-2006, 11:39 PM
Hi thanks for the mod. Though, I'm having a bit of a problem, when I enter keyword+click on search it redirects me back to the index page again. Im sure I've installed it correctly, I've double checked. The URL displays correctly i.e. htxp://www.directory.com/search-jobs.html yet it just redirects to index page with the searched URL still in the address field. Perhaps im missing something, any feedback appreciated.

thanks

-Neticus

VSDan
01-11-2006, 11:45 PM
This is an issue I have been correcting with another user via PM.

1. Make sure that the mod Rewrite block is placed right AFTER the RewriteEngine on line.

2. Change the mod Rewrite block to the following:

Content visible to registered users only.

- replace /directory/ with actual location on your server.

thompson
01-12-2006, 12:10 AM
thanks dan for helping with this mod. ;)

Neticus
01-12-2006, 01:23 AM
Thanks, works a treat.

neticus.

mikedippel
01-12-2006, 04:34 AM
This seems to be the only mod of yours that I cannot make work. I added the lines in the proper place to the .htaccess file. I can still bring up the directory pages, but the reuslt of the search says 'sever cannot be found'. Any suggestions?

After writing this, I realized you had a slight change in the rewrite rule, so I edited it further. Now. the search works, but without the effect of the mod. Still shows ?q=

VSDan
01-12-2006, 04:58 AM
Hi Mike:

Can you post your .htaccess file.

mikedippel
01-12-2006, 05:45 AM
Sure:

RewriteEngine On
RewriteCond %{QUERY_STRING} ^q=([A-Za-z_0-9]+)
RewriteRule ^search.html* /directory/index.php?q=%1 [QSA,L]
RewriteRule ^search-(.*).html /directory/index.php?q=$1 [QSA,L]
#RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
#RewriteRule ^.*$ /index.php [QSA,L]
RewriteRule .* index.php [QSA,L]

VSDan
01-12-2006, 05:47 AM
Hi Mike:

Thanks. One other thing, what is URL to where I can see this in action.

mikedippel
01-12-2006, 05:52 AM
Do a search from any page on http://regionaldirectory.biz

VSDan
01-12-2006, 07:07 AM
Hi Mike:

It has something to do with your directory structure. I had your FTP info from before, but no more. Can you resend them c/o support at monster-submit dot com

maxlinks
01-14-2006, 10:29 PM
It is possible to add : search.php


Content visible to registered users only.


Problem solves with : "http://" or "/"

vegabond
01-16-2006, 05:07 PM
Dear VSDan,

PHP link directory search result have no page navigation and all result showing on one page. it will be a problem for big directory. We know you have enough knowldge about PLD. I think you can do that. If possible pls do it for us....


Thanks for your support :D

VSDan
01-16-2006, 07:18 PM
vegabond:

This would involve a fair bit of editing of index.php, which I'm not inclined to do as upgrading to phpLD 3.0 would mean re-editing index.php if the file changes. If I have time, I could write a separate search.php that could do what you want. A separate search.php is really the way it should be done.

VSDan
01-16-2006, 10:16 PM
Okay, I have written the search.php. Now testing locally. Will have something for testing today or tomorrow.

Note: Pagination will be like how it is done with Google =)

(I'll be starting a separate thread for this new mod)

vegabond
01-20-2006, 01:02 PM
Thank you so much : D
I know you have a big heart & you always helping PHPld user.
If you don’t mind, I want to request you another :(.

REQ: In the search result i want to show link's category for user understanding where the link is located. Like that:
{test url removed}

Basically, I am migrating my directory to PHPld :D, I was linker 2.04 user. I think PHPld have mass advantage & I am sure.

Thank you again

vegabond
01-24-2006, 08:12 AM
Dear VSDan,

have u done it? i am waiting for this mod :D


Thanks

VSDan
01-24-2006, 09:00 AM
Still testing - should release tomorrow or the next day =)

vegabond
01-24-2006, 12:34 PM
Thanks, no problem

Club2Share.com
01-28-2006, 02:26 PM
What is better
directory/Computers/

or

/directory/Computers.html



i feel the first one is better .. :roll:

Sxperm
01-29-2006, 03:24 PM
Thanks for this great mod, Dan. However, I found this mod has some problem with some search with space or dot (.) If someone searched match that criteria then no results page shown. Is this normally?

Fred
04-11-2006, 07:48 PM
i have a problem this is not working for me
i am using phplinkdirectory vs 2 and apache vs 1.3
my .acces is this
Content visible to registered users only.
any ideas....

bobby9101
04-12-2006, 11:24 PM
this mod works for me, however when i do a multi word search it goes to the index page :(

bobby9101
04-14-2006, 02:20 AM
i hate to be annoying, but has anyone had this problem?
it is on a local server so i can't post a link :-(
i will post the files you need though, just give me a hollar please

bobby9101
04-14-2006, 05:33 PM
ok third post in a row :oops:
but anyway here is the problem:
when you do a search for "a" it goes to hxtp://127.0.0.1/search-a.html
which works, however if you search for "a a" you get:
htxp://127.0.0.1/search-a%20a.html
which sends it back to the index page keeping"htxp://127.0.0.1/search-a%20a.html" in the browser address bar???

ping
09-01-2006, 06:35 PM
Im not sure this works when you have pagination activated.

I end up with search-blah.htmlpage2.html any way to fix that ?

deenybird
09-05-2006, 09:18 AM
Content visible to registered users only.

Love to try it, but your link is password protected.

ping
09-07-2006, 11:00 PM
Content visible to registered users only.

Im sure this only requires a minor fix but it is kinda annoying having it conflict with the default rewrite rules ...

Could you look into this ?

Thanks,

Equipo_A
09-20-2006, 01:45 AM
Content visible to registered users only.

Hello

Search: a => http://www.monster-submit.com/directory/search-a.html and to go page 2 =>http://www.monster-submit.com/directory/search-a.htmlpage-2.html

ERROR NOT FOUND PAGE 2

Excuse my english Im spanish

VSDan
09-20-2006, 07:25 AM
Hi:

I have released a new version (v1.30) of mod for phpLD 3.04 (may work for earlier versions of 3, but not 2.xx) that seems to work now - at least, on our server. You have to use v1.20 for 2.xx - if issues with phpLD 2.xx with mod v1.20, get back to me.

Equipo_A
09-20-2006, 07:46 PM
Search: a => htxp://www.monster-submit.com/directory/search-a/ and to go Categories

Example =>htxp://www.monster-submit.com/directory/search-a/Communities/

No listings found that match your keyword(s): a/Communities

VSDan
09-20-2006, 11:28 PM
Okay, try now again =)

Equipo_A
09-21-2006, 12:51 AM
Content visible to registered users only.

My directory has the same problem. How do I solve it?

bara.munchies
10-13-2006, 12:47 PM
i don't see the point in cleaning the urls for keyword searches.
the se bots don't put words in my search field to index the search sesults page.
so where's the point?

i see a use together with the tagcloud as it gives me additional pages that can be indexes, as there are predefined searchlinks inside the tag cloud.
but how can i get there tag cloud links clean like the searchurls?


EDIT:

already found the changes you have to make to tagclouds.php on line 399:

before:
Content visible to registered users only.

after:
Content visible to registered users only.


so after all a great contribution, that gives you a boost in internal linking together with the tag cloud.

regg
10-13-2006, 05:39 PM
How can I change the Tag Clouds to:

Tag Clouds: htxp://www.regon.de/search-ist/ -> htxp://www.regon.de/suche-ist.html

?

Thanks

maxlinks
02-14-2007, 10:52 AM
SEO-Friendly Search Mod [3.0]- It does not function correctly.

My Phpld ver.3.06.
maxlinks.org/search-directory/
---------
HTTP/1.1 404 Not Found
Date: Wed, 14 Feb 2007 09:44:21 GMT
Server: Apache/1.3.36 (Unix) mod_fastcgi/2.4.2 mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.4.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.27 OpenSSL/0.9.7a
X-Powered-By: PHP/4.4.4
Set-Cookie: PHPSESSID=c58e22a780c4898f11b2a79139bf4635; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Connection: close
Content-Type: text/html; charset=utf-8
----------------

How did you solve in your directory problem ?

VSDan
02-14-2007, 07:23 PM
Hi:

Have a look at this thread to fix those 404's:

http://www.phplinkdirectory.com/forum/showthread.php?t=6228

Fastian
03-09-2007, 02:45 PM
@VSDan

I am trying v3.0 of this mod with PHPLD v2.1

When I search for any term, all i see is main page with mydomain.com/search-/ in the URL.

No error msg and no result. : (

Any idea what is wrong ??

VSDan
03-09-2007, 05:59 PM
Please re-post here:

http://www.monster-submit.com/phpld/members/forum/