Guest Posted December 31, 2006 Share Posted December 31, 2006 Hopefully simple one for you guys. I have enabled safe URLs, and suddenly the attributes on my product pages have all dissappeared. I think I have it narrowed down to this: (int)$HTTP_GET_VARS['products_id'] Normally the URL looks like this "products_id=76", this works just fine with the above. But after the change, the URL looks like this "products_id/76", this doesn't work, data on my site poofs away. I know its related to the HTTP_GET_VARS thing because the regular URL style (products_id=76) works just fine with the SEO safe thing enabled. So I'd like to ask how to solve this? I suspect PHP_SELF could be helpful maybe? Thanks. Link to comment Share on other sites More sharing options...
♥Monika in Germany Posted December 31, 2006 Share Posted December 31, 2006 the safe URLs have many bugs, this may be one of them. Install instead chemo's SEO URLs ... I suggest you use 2.1d, you should have it up and running very fast :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ... Link to comment Share on other sites More sharing options...
Guest Posted December 31, 2006 Share Posted December 31, 2006 In the words of Indy's dad, "Alexandretta!!!" Thanks a whole bunch Monika!! I don't know why I didn't find this before, used another one that didn't work at all! Link to comment Share on other sites More sharing options...
♥Vger Posted December 31, 2006 Share Posted December 31, 2006 Make sure that your server is Apache based and that Mod Rewrite is enabled - both are necessary for Ultimate SEO URL's to work. Vger Link to comment Share on other sites More sharing options...
Guest Posted December 31, 2006 Share Posted December 31, 2006 Don't know what both are, but yup the contrib works, thanks! Now, I just have to figure out how to remove the dashes, single letters and the numbers. Link to comment Share on other sites More sharing options...
♥Monika in Germany Posted December 31, 2006 Share Posted December 31, 2006 use the character replace feature in the SEO admin ... just replace by "nothing", meaning do not add anything for the replacing part. I could swear I have done that before but cannot find the site where I did it, LOL :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ... Link to comment Share on other sites More sharing options...
Guest Posted January 1, 2007 Share Posted January 1, 2007 Yea unfortunately the character replace feature doesn't work heheh, tried replacing even regular characters, but nada. But anyway I'm guessing my problem could be solved with the Advanced Ultimate SEO contrib, but it looks like too much trouble to be worth the time. Its cool, mygreatproduct-p-58.html looks good enough to me, thanks again :). Link to comment Share on other sites More sharing options...
♥Monika in Germany Posted January 1, 2007 Share Posted January 1, 2007 I use the character rerpalce feature on several dozen international sites - we have many non-url-suitable characters, so yes, it does work. If you were talking about the p-58 though, that is added during rewrite and will identify your product regardless the language it was viewed in. :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ... Link to comment Share on other sites More sharing options...
Guest Posted January 1, 2007 Share Posted January 1, 2007 Swoot! I managed to tweak the Ultimate SEO php file into displaying the links from this: http://www.whatever.com/goodie-p-81.html to this: http://www.whatever.com/81/goodie.html with a few simple changes, Yay! But in order for this to work, I'll also need to tweak the .htaccess file. Currently these two work together: http://www.whatever.com/goodie-p-81.html RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING} But man, this mod_rewrite is crazy stuff, I can't figure out how to change it for this: http://www.whatever.com/81/goodie.html Can someone confirm is this is correct? RewriteRule ^(.*)/(.*).html$ product_info.php?products_id=$1&%{QUERY_STRING} So its to use the value found in the first bracket ($1) before the slash, and place it after "products_id=". I tested it and it seemed to work perfectly, all the links work great, but I don't know if anything crazy would happen because of it? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.