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
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.
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
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.