Re: Chemo's Ultimate URL's
Does anyone a have good uninstall process for this mod. I'd like to uninstall it. I want to make sure my index pages are given 301 Redirect. Here is my current .htaccess:
Code:
RewriteEngine On
RewriteBase /
# Music Product Type Pages from Ultimate Seo Urls version 2.1 to 3.X
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)-pmi-([0-9]+).html$ index\.php?main_page=product_music_info&products_id=$2&%{QUERY_STRING} [L,R=301]
# From Ultimate Seo Urls version 2.1 to 3.X
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)-p-(.*).html$ index\.php?main_page=product_info&products_id=$2&%{QUERY_STRING} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)-c-(.*).html$ index\.php?main_page=index&cPath=$2&%{QUERY_STRING} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)-m-([0-9]+).html$ index\.php?main_page=index&manufacturers_id=$2&%{QUERY_STRING} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)-pi-([0-9]+).html$ index\.php?main_page=popup_image&pID=$2&%{QUERY_STRING} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)-pr-([0-9]+).html$ index\.php?main_page=product_reviews&products_id=$2&%{QUERY_STRING} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)-pri-([0-9]+).html$ index\.php?main_page=product_reviews_info&products_id=$2&%{QUERY_STRING} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*).html$ index\.php?main_page=$1&%{QUERY_STRING} [L,R=301]
# Seo Urls version 3.x
# Don't rewrite real files or directories
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index\.php?seo_url=$1&%{QUERY_STRING} [L]
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^www\.clevershoppers\.com [NC]
RewriteRule (.*) http://www.clevershoppers.com/$1 [R=301,L]
I am sure I need to change this line
Code:
RewriteRule ^(.+)$ index\.php?seo_url=$1&%{QUERY_STRING} [L]
to
Code:
RewriteRule ^(.+)$ index\.php?seo_url=$1&%{QUERY_STRING} [L,R=301]
This should take care of my old v2.103 redirecting from .html to original zen cart url.
However, what do I need to rewrite the new pages index without .html extension?
Thanks!
Re: Chemo's Ultimate URL's
Well, solved my own problem. After uninstalling this mod, this is the .htaccess to make sure all the old indexed pages are sent back to their original zen cart pages as well as sending a 301. One set of this .htaccess covers redirecting the urls generated using ultimate seo url 2.103 which generated urls with .html and the other set of the code deals with url generated using beta 3.0. If anyone see an error in the way this is setup please let me know. Thanks!
Code:
RewriteEngine On
RewriteBase /
# Music Product Type Pages from Ultimate Seo Urls version 2.1 to 3.X
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)-pmi-([0-9]+).html$ index\.php?main_page=product_music_info&products_id=$2&%{QUERY_STRING} [L,R=301]
# From Ultimate Seo Urls version 2.1 to 3.X
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)-p-(.*).html$ index\.php?main_page=product_info&products_id=$2&%{QUERY_STRING} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)-p-(.*)$ index\.php?main_page=product_info&products_id=$2&%{QUERY_STRING} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)-c-(.*).html$ index\.php?main_page=index&cPath=$2&%{QUERY_STRING} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)-c-(.*)$ index\.php?main_page=index&cPath=$2&%{QUERY_STRING} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)-m-([0-9]+).html$ index\.php?main_page=index&manufacturers_id=$2&%{QUERY_STRING} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)-m-([0-9]+)$ index\.php?main_page=index&manufacturers_id=$2&%{QUERY_STRING} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)-pi-([0-9]+).html$ index\.php?main_page=popup_image&pID=$2&%{QUERY_STRING} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)-pi-([0-9]+)$ index\.php?main_page=popup_image&pID=$2&%{QUERY_STRING} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)-pr-([0-9]+).html$ index\.php?main_page=product_reviews&products_id=$2&%{QUERY_STRING} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)-pr-([0-9]+)$ index\.php?main_page=product_reviews&products_id=$2&%{QUERY_STRING} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)-pri-([0-9]+).html$ index\.php?main_page=product_reviews_info&products_id=$2&%{QUERY_STRING} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)-pri-([0-9]+)$ index\.php?main_page=product_reviews_info&products_id=$2&%{QUERY_STRING} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*).html$ index\.php?main_page=$1&%{QUERY_STRING} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index\.php?main_page=$1&%{QUERY_STRING} [L,R=301]
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^www\.clevershoppers\.com [NC]
RewriteRule (.*) http://www.clevershoppers.com/$1 [R=301,L]
Re: Chemo's Ultimate URL's
Here is an update .htaccess. I modified the last few lines because it was messing up domain/forum type of url.
Code:
RewriteEngine On
RewriteBase /
# Music Product Type Pages from Ultimate Seo Urls version 2.1 to 3.X
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)-pmi-([0-9]+).html$ index\.php?main_page=product_music_info&products_id=$2&%{QUERY_STRING} [L,R=301]
# From Ultimate Seo Urls version 2.1 to 3.X
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)-p-(.*).html$ index\.php?main_page=product_info&products_id=$2&%{QUERY_STRING} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)-p-(.*)$ index\.php?main_page=product_info&products_id=$2&%{QUERY_STRING} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)-c-(.*).html$ index\.php?main_page=index&cPath=$2&%{QUERY_STRING} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)-c-(.*)$ index\.php?main_page=index&cPath=$2&%{QUERY_STRING} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)-m-([0-9]+).html$ index\.php?main_page=index&manufacturers_id=$2&%{QUERY_STRING} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)-m-([0-9]+)$ index\.php?main_page=index&manufacturers_id=$2&%{QUERY_STRING} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)-pi-([0-9]+).html$ index\.php?main_page=popup_image&pID=$2&%{QUERY_STRING} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)-pi-([0-9]+)$ index\.php?main_page=popup_image&pID=$2&%{QUERY_STRING} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)-pr-([0-9]+).html$ index\.php?main_page=product_reviews&products_id=$2&%{QUERY_STRING} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)-pr-([0-9]+)$ index\.php?main_page=product_reviews&products_id=$2&%{QUERY_STRING} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)-pri-([0-9]+).html$ index\.php?main_page=product_reviews_info&products_id=$2&%{QUERY_STRING} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)-pri-([0-9]+)$ index\.php?main_page=product_reviews_info&products_id=$2&%{QUERY_STRING} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*).html$ index\.php?main_page=$1&%{QUERY_STRING} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index\.php?main_page=$1&%{QUERY_STRING} [L,R=301]
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^www\.clevershoppers\.com [NC]
RewriteRule (.*) http://www.clevershoppers.com/$1 [R=301,L]
Re: Chemo's Ultimate URL's
So what issues where you having with this mod.
Re: Chemo's Ultimate URL's
Quote:
Originally Posted by
ctcentralinfo
So what issues where you having with this mod.
There are so many scenarios causing issues that I really don't have time to go into all but here are a few...
Search Engines are confused when generating url for index when this mod is activated. MSN and Shopwiki are the ones affected the most, they keep adding all sort of garbage to the url like adding extra // in the wrong place and then when the url is clicked from index it returns 404. This behavior also changes depending on whether you're using .html or / or blank extension or not. Each one creates a different misformed url issue.
The setting of .html also breaks with Paypal Express unless you have seo url enabled for ssl (which I really don't want).
Some crawler/search engine are actually confused when no extension is indicated because they tried to look for what would be a default file type so when reading a url that ends with no extension (in this case) it causes other 404 issues. Obviously, there are a lot of site when this methods works just fine so it could be a configuration issue with my server or other things but there are issues nonetheless.
To be fair, this mod was released and we were all advised not to use this in production environment but of course I didn't listen to that. I have successfully uninstalled it and things are working fine and urls are not creating problems. For now I will go spend my time on making money instead of chasing bugs (if and when there is a production release of this mod, I might take a chance again).
One last piece of advice, to a naked eyes this thing looks like it's working flawlessly but you have to dig deep to find some of the issues. If you have user tracking installed, view the session for some of the search engines/crawler and you will see some of the stuff that may not be easily obvious. If you error log is set to capture the right logging to reveal all the different error messages, check it regularly. If you have awstats, run the report and take a look at the http error code, click on the 404 to see what's happening and try to dissect various things that are obvious.
Re: Chemo's Ultimate URL's
Quote:
Originally Posted by
BlessIsaacola
Dreamscape,
The error_log is filling up like crazy with:
[Sat Mar 31 01:43:14 2007] [debug] mod_rewrite.c(1644): [client 66.249.65.73] mod_rewrite's internal redirect status: 0/10.
I contacted our host and this is their response
The rules are quite simple, are correct, and should not be causing that error. The only reasons I can think of for that to be placed in the log is either a bug in the version of mod_rewrite you're using or a botched mod_rewrite install.
Not to be rude, but I'm assuming the later since you appear to have pretty incompetent server admins from some of the issues you say you have. Personally I'd run from their server ASAP, but your choice.
Sorry I can't be of more help.
Re: Chemo's Ultimate URL's
Quote:
Originally Posted by
dreamscape
The rules are quite simple, are correct, and should not be causing that error. The only reasons I can think of for that to be placed in the log is either a bug in the version of mod_rewrite you're using or a botched mod_rewrite install.
Not to be rude, but I'm assuming the later since you appear to have pretty incompetent server admins from some of the issues you say you have. Personally I'd run from their server ASAP, but your choice.
Sorry I can't be of more help.
I guess it's easier for you to selectively reply to this and ignore other issues raised that have nothing to do with my hosting company. For example this mod doesn't work with Paypal Express Checkout when you have .html extension and you do not enable seo url for ssl and that's just one example.
I find it interesting that the mod_write works perfectly when the seo url is uninstalled and I am just using .htaccess to redirect old pages generated by seo url mod.
Re: Chemo's Ultimate URL's
Quote:
Originally Posted by
dreamscape
The rules are quite simple, are correct, and should not be causing that error. The only reasons I can think of for that to be placed in the log is either a bug in the version of mod_rewrite you're using or a botched mod_rewrite install.
Not to be rude, but I'm assuming the later since you appear to have pretty incompetent server admins from some of the issues you say you have. Personally I'd run from their server ASAP, but your choice.
Sorry I can't be of more help.
Not to be rude but you actually instructed us not to use this in a production environment because it's beta. Keep in mind this is a sponsored project that some of us funded to bring to completion and all we have to show for it is a BETA version no production release yet! So basically, we are still waiting to get a production release which is what I thought, we contributed to sponsor.
Re: Chemo's Ultimate URL's
Quote:
Originally Posted by
BlessIsaacola
I guess it's easier for you to selectively reply to this and ignore other issues raised that have nothing to do with my hosting company.
Like I've said many times before, this thread is NOT for official support. It is for community support. Use the bug tracker to reporting issues you believe *may* be bugs... NOT THE FORUM.
Quote:
Originally Posted by
BlessIsaacola
For example this mod doesn't work with Paypal Express Checkout when you have .html extension and you do not enable seo url for ssl and that's just one example.
already reported and fixed some time ago: http://bugs.smarterwebdev.com/view_bug.php?bug_id=11
And again I cannot stress enough that you should not install a BETA on a production site. If you're foolish enough to, then you can hardly have anyone to blame but yourself when the **** hits the fan.
Re: Chemo's Ultimate URL's
Quote:
Originally Posted by
BlessIsaacola
Keep in mind this is a sponsored project that some of us funded to bring to completion
A sponsored project, that's funny. If it were sponsored I'd be getting a weekly or monthly paycheck for work done.
The funding was for 10-15 working hours to help complete the version. Initial completion is done with first public release, beta or otherwise. Naturally there are going to be bugs to work out.
How much time do you think I've put into bringing 3.0 closer to production so far?? Well over the 10-15 hours that a group funded (for which I am eternally grateful). So don't keep brining up this "we paid you" BS like I'm somehow still in debt to you.