annuity Posted August 31, 2011 Share Posted August 31, 2011 (edited) Further to my previous post above. I have moved hosts and on a fresh install it is still displaying the same behaviour so please could anyone who has oscommerce 2.3 and the latest version of USU5 pro(r205) installed please take just 10 seconds to check the following for me: Go to your home page ie. www.yoursite.com Click on any category/product/manufacturer ie. www.yoursite.com/category-c-1.html In your browser manually change the URL to ie. www.yoursite.com/-c-1.html Press enter Do you get a 404 page not found or does the URL change back to www.yoursite.com/category-c-1.html? Also is anyone using the manual 301 redirects in includes/modules/ultimate_seo_urls5/includes/uri_redirects_array.php? Does it work for you? I can't get anything to 301 redirect even the examples given in the original file, which is: <?php /** * * ULTIMATE Seo Urls 5 PRO ( version 1.1 ) * * * @package USU5_PRO * @license http://www.opensource.org/licenses/gpl-2.0.php GNU Public License * @link http://www.fwrmedia.co.uk * @copyright Copyright 2008-2009 FWR Media * @copyright Portions Copyright 2005 ( rewrite uri concept ) Bobby Easland * @author Robert Fisher, FWR Media, http://www.fwrmedia.co.uk * @lastdev $Author:: Rob $: Author of last commit * @lastmod $Date:: 2010-12-21 22:45:02 +0000 (Tue, 21 Dec 2010) $: Date of last commit * @version $Rev:: 196 $: Revision of last commit * @Id $Id:: uri_redirects_array.php 196 2010-12-21 22:45:02Z Rob $: Full Details */ /** * Array of URIs to be 301 redirected * @package USU5_PRO * @example 'hardware-c-99' => array( 'index.php', 'cPath=1' ) redirects the specific uri hardware-c-99 to the current uri for cPath=1 */ /* $usu5_uri_redirects = array( 'hardware-c-99' => array( 'index.php', 'cPath=1' ), 'hardware-c-101' => array( 'index.php', 'cPath=1' ), 'de/hardware-c-101' => array( 'index.php', 'cPath=1' ) ); */ I have tried removing the /* and */ but no matter what i do i can't get anything to 301 redirect. Also should the old URL like hardware-c-99 in the example above not be hardware-c-99.html? I have tried it with and without anyway but as i say nothing will 301 redirect i just get a 404 page not found. Every other part of the contribution is working perfectly. The weird thing is i have other websites with older versions of USU 5 that redirect -c-1.html correctly and manual 301 redirects work perfectly so i don't understand why with this latest version i am havng these issues. I have root access to the server so can change anything if required. I need to get manual 301 redirects working because i don't have control over my categories so they could be changed at anytime and i need to be able to 301 redirect from the old categories to the new ones. Thank you. Ok i've managed to install a new class to handle manual redirects so that ones sorted but the other issue of www.domain.com/-c-.1.html not redirecting and showing a 404 page is still happening. I thought of simply adding -c-.1.html and categoryname-c-.1.html to my redirect array but it gives a redirect loop. I have noticed the 404 page when the url is www.domain.com/-c-.1.html is not the USU5 404 page so it seems for some reason when the url is www.domain.com/-c-.1.html it does not even enter into the system so to speak and the server rejects it before that. But if i add any letter into the url before the hyphen for example www.domain.com/Z-c-.1.html the redirect works. I thought this could be a configure.php or .htaccess issue but both look fine. Could it be something on my server? I have root access so can tweak anything i just need to know what. Anybody got any suggestions please? Edited August 31, 2011 by annuity Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.