Questions
-
Redesigning a really old Website with old-fashioned permalinks
Thanks Ryan, so this means to get for example interview_id=819 redirected to the correct article, I have to provide the ID also in the new URL? TLD/category/category.php?interview_id=819 to TLD/category/interview-name-819 Should be something like this in Regex: RewriteRule ^category/([^/]+-)?([0-9]+)/?$ category/category.php?interview_id=$2 EDIT: After working on it the whole day I found the following solution (as I'm working with Wordpress). Maybe it is useful for anyone: I'm using the following function now: add_action('parse_request','oldsite_redirect',0); // 0=before (most) 'parse_request' calls function oldsite_redirect() { if (isset($_GET['interview_id'])) { global $wpdb; $sql = "SELECT post_id FROM {$wpdb->postmeta} " . "WHERE meta_key='interview_id' AND meta_value='%s'"; $sql = $wpdb->prepare($sql,$_GET['interview_id']); $post_id = $wpdb->get_var($sql); if ($post_id) { $permalink = get_permalink($post_id); if ($permalink) { wp_safe_redirect($permalink,301); exit; } } } } Solution found here: http://wordpress.stackexchange.com/questions/12824/url-rewrite-based-on-a-custom-field-value/
Web Design | | dominator0 -
Magento Multistore and Duplicate Content
Hi Highland, I have the very same problem than Stefan. mydomain.com/product.html mydomain.com/product.html?___store=footdistrict_es The SEOMOZ software tells me this is considered duplicate content. I got to the Magento plugin website but it seems it is not compatible with Magento 1.7. Do you know a plugin that it is with this version? Stefan - can you please send me the links where you hve found the hacks? I am going to have a look to see if I can apply it. Thanks and regards
Technical SEO Issues | | footd0