Support Forums

SEO Module Questions

This is a discussion on SEO Module Questions within the Modules / Plugins / Modifications forums, part of the Developer Forums category; Hi, I have not seen this come up before and didnt really feel like going though 20 pages of results ...


Go Back   68 Classifieds Forums > Developer Forums > Modules / Plugins / Modifications

Reply
 
Thread Tools Display Modes
Old 09-09-2010, 05:28 AM   #1
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 1,089
Rep Power: 35
bowers01 is on a distinguished road
Default SEO Module Questions

Hi,
I have not seen this come up before and didnt really feel like going though 20 pages of results for SEO module.

Anyway what i want is to leave all pages as they are except for viewlisting.php, i want to change it to the category name ie

yourdomain.com/trucks/tray/123
yourdomain.com/loaders/wheel-loader/456
So first category, second and then listing id. Replace space or / with a -

Is this possible? Is this hard to do?

Regards,
Nick
__________________
Nick Bowers
68c v4.1.10 Developer Custom Template
bowers01 is offline   Reply With Quote
Old 09-09-2010, 06:02 AM   #2
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,342
Rep Power: 84
seymourjames is a jewel in the rough
Default

I think this will be difficult because you not only have categories but a hierarchy of categories. Not sure how you would do this to be frank. You can try modifying the function in hooks.php if you can get access to the category for the listing.

function listing_url($row)

There is this line

$string="listing/".$row['id']."/".$string.".html";

Then modify the rewrite rule in the .htaccess file.

The best I ever could get was to get each listing at the top level of a site (i.e. not under a listing subfolder). This is better for SEO anyway.

RewriteRule ^listing-([0-9]+)-([0-9a-zA-Z_-]+).html$ viewlisting.php?view=$1 [NC,QSA]

I never tried to replace the word "listing" with the category.

My question would be why do you want to do this? I see no real benefit.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline   Reply With Quote
Old 09-09-2010, 08:18 PM   #3
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 1,089
Rep Power: 35
bowers01 is on a distinguished road
Default

Hi David,
I think it would make it look neater overall, but i have no idea how to do this.
A problem i can see is if i had yourdomain.com/trucks/tray/123 people would try and go back to yourdomain.com/trucks/tray/ to see all trucks in tray. So that would also need to be setup so that yourdomain.com/category.php?cat=tray_1 = yourdomain.com/trucks/tray/ which i can see becoming a difficult task?

Any suggestions?

Nick
__________________
Nick Bowers
68c v4.1.10 Developer Custom Template
bowers01 is offline   Reply With Quote
Old 09-10-2010, 03:20 AM   #4
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,342
Rep Power: 84
seymourjames is a jewel in the rough
Default

I would do it this way


RewriteRule ^listing-([0-9]+)-([0-9a-zA-Z_-]+).html$ viewlisting.php?view=$1 [NC,QSA]


This makes top level urls which do not appear to be in directories.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Membership module questions metrony Techconnx 3 05-16-2010 08:32 PM
google maps module/seo friendly urls module incompatibility everyounce Techconnx 2 06-24-2009 12:01 AM
few questions damiun Technical Support 2 05-28-2009 09:37 AM
Questions gboy Pre Sales Questions 1 02-25-2008 11:32 AM
Questions angler Pre Sales Questions 12 03-22-2007 12:52 PM


All times are GMT -4. The time now is 08:05 AM.


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