Search Engine Friendly URL search string

This is a discussion on Search Engine Friendly URL search string within the v3.1 Suggestions and Feedback forums, part of the v3.1 Legacy Help & Support category; How can I make a search string into a SEF url using .htaccess so I can make this: http:// mysite ...


Go Back   68 Classifieds Forums > v3.1 Legacy Help & Support > v3.1 Suggestions and Feedback

 
LinkBack Thread Tools Display Modes
  #1  
Old 02-20-2007, 07:30 AM
CHRD's Avatar
Senior Member
 
Join Date: Nov 2006
Posts: 169
Rep Power: 12
Default Search Engine Friendly URL search string

How can I make a search string into a SEF url using .htaccess
so I can make this:
http:// mysite com/searchresults.php?searchtext=golf&type=16&minprice =&maxprice=&opt9=&opt10=&opt5=&opt4=&opt12=&opt16= &opt17=&Submit=Search

into:
http:// mysite com/golfing_holidays_spain.html

also how would I change the word "listing" to "owners" in the viewlisting url

Thanks for any help

__________________
Costa del Sol
Spain
v3.1.10 Dev
V4.09 Dev sweeeet
�Powerful you have become, the dark side I sense in you.�
Reply With Quote
  #2  
Old 02-20-2007, 11:21 AM
68 Classifieds Staff
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,281
Rep Power: 98
Default

I would recommend taking a look at the seo modules "mod_user.php" file and also the .htaccess file.

The mod_user file handles changes the links and the .htaccess file handles where to send it.

So for the golfing_holidays_spain.html you would add this to the .htaccess file:
Code:
RewriteRule ^golfing_holidays_spain\.html$ searchresults.php?searchtext=golf&type=16 [NC]
__________________
Eric Barnes
68 Classifieds Developer
Please do not send me a private message asking for support. Instead use these open forums or our ticket system.

Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | Twitter
Reply With Quote
  #3  
Old 02-22-2007, 05:52 AM
CHRD's Avatar
Senior Member
 
Join Date: Nov 2006
Posts: 169
Rep Power: 12
Default

I knew that one, just needed confirm on code.
I just added it to .htaccess and it works fine.

Other matter, I have golf as an extra field selection but when I search my properties under cat, then golf, I only get 2 results when they are 19 that should show in that cat.
__________________
Costa del Sol
Spain
v3.1.10 Dev
V4.09 Dev sweeeet
�Powerful you have become, the dark side I sense in you.�
Reply With Quote
  #4  
Old 02-22-2007, 10:08 AM
Moderator
 
Join Date: Mar 2006
Posts: 3,623
Rep Power: 89
Default

Quote:
Originally Posted by CHRD View Post
I knew that one, just needed confirm on code.
I just added it to .htaccess and it works fine.

Other matter, I have golf as an extra field selection but when I search my properties under cat, then golf, I only get 2 results when they are 19 that should show in that cat.
Was the extra field golf added after the other 17 results that dont show up, if so then try opening the other 17 ads in admin to modify them and make sure the field appears and fill it out as needed and save changes.
__________________
Larry.
(Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free)

Set your site apart from the competition with one of my modules......
Google Map Module | You Tube Module

68 Classifieds Important Links
Customer Area | Issue Tracker | Knowledge Base | User Manuals
Reply With Quote
  #5  
Old 02-23-2007, 02:45 PM
CHRD's Avatar
Senior Member
 
Join Date: Nov 2006
Posts: 169
Rep Power: 12
Default

The golf option comes under an extra field called Holiday type, I have check boxes to best describe what type of holiday rental it is..
the field has been there from the start, but it doesn't seem to work,
when I use Advance search and only search in one category and only select golf, nothing comes up.
When I type in golf on the text search box and don't select the golf option only a few come up.
When I put golf in the text search box and select the golf option nothing comes up.

also the holiday type displays as drop down menu not check boxes like in listing process
__________________
Costa del Sol
Spain
v3.1.10 Dev
V4.09 Dev sweeeet
�Powerful you have become, the dark side I sense in you.�
Reply With Quote
  #6  
Old 04-15-2007, 11:06 PM
bgordon's Avatar
Senior Member
 
Join Date: Aug 2006
Location: Georgian Bay, Ontario Canada
Posts: 157
Rep Power: 13
Question

Without pasting the code from the mod_user.php here... I don't quite understand how it re-writes the urls... it has /\\1/\\2 etc...

Where are these numbers used elsewhere to make the new url?

I wanted to replace the underscore that is put in place of the spaces with a dash and can't see how to do that in the mod_user.php

As an alternative, could the seo mod simply change the url to www.mysite.com/listing/344.html

That would simplify the issue that I have with people's ads have 'bad' characters in the title (which becomes the seo friendly url at present) causing me grief with rss feeds etc...

Thanks


Quote:
Originally Posted by suzkaw View Post
I would recommend taking a look at the seo modules "mod_user.php" file and also the .htaccess file.

The mod_user file handles changes the links and the .htaccess file handles where to send it.

So for the golfing_holidays_spain.html you would add this to the .htaccess file:
Code:
RewriteRule ^golfing_holidays_spain\.html$ searchresults.php?searchtext=golf&type=16 [NC]
Reply With Quote
  #7  
Old 04-16-2007, 10:59 AM
gregbatch's Avatar
Senior Member
 
Join Date: Jun 2006
Posts: 172
Rep Power: 14
Default

Use dashes, not underscores. Very important!
__________________
Greg
3.1.4 Designer
Reply With Quote
  #8  
Old 04-16-2007, 02:00 PM
bgordon's Avatar
Senior Member
 
Join Date: Aug 2006
Location: Georgian Bay, Ontario Canada
Posts: 157
Rep Power: 13
Default

I agree and am trying to change this... any idea how to? The SEO mod would have to be changed to generate the dash instead of the underscore but I don't see anyplace to do that in the mod's php...


The .htacess would then need to be changed to rewrite the dash-url instead of the underscored url..
Reply With Quote
  #9  
Old 04-16-2007, 05:35 PM
gregbatch's Avatar
Senior Member
 
Join Date: Jun 2006
Posts: 172
Rep Power: 14
Default

I think they just covered this. See if this helps:

SEO _ to - From The "Experts"

Personally, I don't worry too much about SEO on the url anymore. At one time the engines had a big problem with it, now it's not a big deal, and so many people are stuffing-their-urls-that-I-think-the-engines-are-paying-less-attention-to-them-again. I got the biggest SEO boost when I changed the listing link from "View Listing" to the listing title, which the engines love.
__________________
Greg
3.1.4 Designer
Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Modification: Search Engine Friendly URL Eric Barnes v3.1 Modules & Modifications 60 09-05-2008 03:54 PM
Search engine friendly? Unregistered Pre Sales Questions 2 12-22-2006 12:01 PM
Search Engine Friendly urls Mikael v3.1 Questions & Support 1 06-23-2006 09:43 AM
Search engine friendly urls SkGold v3.1 Questions & Support 3 06-15-2006 12:40 AM
Search Engine Friendly URL's Eric Barnes v3.1 Questions & Support 2 04-26-2006 01:16 PM


All times are GMT -4. The time now is 08:33 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22