|
|
#1 |
|
Senior Member
Join Date: Mar 2006
Location: Lille (France)
Posts: 120
Rep Power: 16 ![]() |
Hi,
In SEO module, the URL are converted like this : PHP Code:
PHP Code:
The fix ? I've changed in Listings.php PHP Code:
PHP Code:
replace the line after PHP Code:
PHP Code:
PHP Code:
Regards Pascal
__________________
68classifieds (V4.0.9Developer) |
|
|
|
|
|
#2 |
|
All Hands On Deck
Join Date: Mar 2008
Posts: 1,166
Rep Power: 30 ![]() |
This is a great solution because there is another ramification to virtual folders - it is possible to generate millions of duplicate urls.
Another mod needed is to do the same for categories. Have a look at that one. There is one little problem though - I think changes will be needed to the featured and horizontal listings modules. I know for sure the ones I did with some css styling for featured and latest listings with the SEO module in force will need changing. Here is the change in those plugins. It turns out to be simple. $link="listing-".$loop[$ads][id]."-".$listing_title.".html"; I think the default plugins for horizontal and vertical featured listings etc will also need this change. |
|
|
|
|
|
#3 |
|
All Hands On Deck
Join Date: Mar 2008
Posts: 1,166
Rep Power: 30 ![]() |
Thinking about this a little more. Would it be best to shorten completely but making sure to retain unique urls
/listingtitle-idnumber.html If so what would you suggest changing. This needs to be changed below but so does the .htaccess. $row['link']="listing-".$row['id']."-".$listing_title.".html"; I tried adjusting the .htaccess and this line above but it would not then find the adverts at all. Perhaps finger trouble. I tried RewriteRule ^([0-9a-zA-Z_-]+)-([0-9]+).html$ viewlisting.php?view=$1 [NC] and $row['link']="".$listing_title."-".$row['id'].".html"; |
|
|
|
|
|
#4 |
|
68 Classifieds Staff
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,087
Rep Power: 117 ![]() |
I would think this would work:
RewriteRule ^listing-([0-9]+)-([0-9a-zA-Z_-]+).html$ viewlisting.php?view=$1 [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 | 68 @ Twitter | My Modules |
|
|
|
|
|
#5 |
|
All Hands On Deck
Join Date: Mar 2008
Posts: 1,166
Rep Power: 30 ![]() |
Morning.
We got that far but I was trying to go one step further and get rid of the word listing and put the id at the end. |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Mod suggestion | atom | v4 Questions & Support | 1 | 07-01-2008 07:05 PM |
| Bug and Suggestion | cwp | v4 Questions & Support | 0 | 12-04-2007 04:16 PM |