
Originally Posted by
ctcentralinfo
How do I completely remove the new beta version from my test and live site? I removed all the files for the beta version from my test site, but I still see it in the Admin section. Any help will be appreciated.
To safely remove this mod (BETA 3.0) from your site do the following:
1. Turn off SEO URL on your admin side.
2. Replace the changes made to your /includes/functions/html_output.php (you can simply override this file if with Zen Cart original if you don't have another mod that has modified it.
3. Remove all the files uploaded during your install that you no longer need.
4. Remove the configuration entry from your database.
5. Enter a new redirect rule for the search engines in your .htaccess to send 301 redirect.
IF you use blank default extension use this .htaccess
Code:
RewriteEngine On
RewriteBase /
# Remove Ultimate Seo Urls version 3.0
RewriteRule ^(.*)-p-(.*)$ index\.php?main_page=product_info&products_id=$2&%{QUERY_STRING} [L,R=301]
RewriteRule ^(.*)-c-(.*)$ index\.php?main_page=index&cPath=$2&%{QUERY_STRING} [L,R=301]
RewriteRule ^(.*)-m-([0-9]+)$ index\.php?main_page=index&manufacturers_id=$2&%{QUERY_STRING} [L,R=301]
RewriteRule ^(.*)-pi-([0-9]+)$ index\.php?main_page=popup_image&pID=$2&%{QUERY_STRING} [L,R=301]
RewriteRule ^(.*)-pr-([0-9]+)$ index\.php?main_page=product_reviews&products_id=$2&%{QUERY_STRING} [L,R=301]
RewriteRule ^(.*)-pri-([0-9]+)$ index\.php?main_page=product_reviews_info&products_id=$2&%{QUERY_STRING} [L,R=301]
RewriteRule ^(.*)-prw-([0-9]+)$ index\.php?main_page=product_reviews_write&products_id=$2&%{QUERY_STRING} [L,R=301]
I am not sure what to do for the rewrite for the other pages when default extension is blank.
Here is the .htaccess if default extension is .html
Code:
RewriteEngine On
RewriteBase /
# Remove Ultimate Seo Urls version 2.1
RewriteRule ^(.*)-p-(.*).html$ index\.php?main_page=product_info&products_id=$2&%{QUERY_STRING} [R=301,L]
RewriteRule ^(.*)-c-(.*).html$ index\.php?main_page=index&cPath=$2&%{QUERY_STRING} [R=301,L]
RewriteRule ^(.*)-m-([0-9]+).html$ index\.php?main_page=index&manufacturers_id=$2&%{QUERY_STRING} [R=301,L]
RewriteRule ^(.*)-pi-([0-9]+).html$ index\.php?main_page=popup_image&pID=$2&%{QUERY_STRING} [R=301,L]
RewriteRule ^(.*)-pr-([0-9]+).html$ index\.php?main_page=product_reviews&products_id=$2&%{QUERY_STRING} [R=301,L]
RewriteRule ^(.*)-pri-([0-9]+).html$ index\.php?main_page=product_reviews_info&products_id=$2&%{QUERY_STRING} [R=301,L]
RewriteRule ^(.*)-prw-([0-9]+).html$ index\.php?main_page=product_reviews_write&products_id=$2&%{QUERY_STRING} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*).html$ index\.php?main_page=$1&%{QUERY_STRING} [L,R=301]
Notice I was too lazy to change [L,R=301] to [R=301,L] The truth is it really doesn't matter.
Also, keep in mind that depending on your scenario you may need to do things different especially is you installed previous version with .html extension but the beta version with blank extension.
Bookmarks