Jump to content

russmcduck

Members
  • Content count

    78
  • Joined

  • Last visited

1 Follower

Profile Information

  1. sitemap_products.html should not be visible the redirect works for me viewing any .html files You see a session id after the html? Please clarify, or post the url as you see it.
  2. I'm not getting session id with the new .htaccess. Disregard the first set of code I posted. It did have undesirable effects but the last works great. And be sure to remove word wrap to avoid Internal Server Errors.
  3. Try This the 500 error is because your .htaccess file is jostled RewriteEngine on Options +FollowSymlinks DirectoryIndex home.html home.php index.php index.html AddType application/x-httpd-php php php4 php3 html htm RewriteRule ^sitemap_categories.html$ sitemap_categories.php [L] RewriteRule ^sitemap_products.html$ sitemap_products.php [L] RewriteRule ^category_([1-9][0-9]*)_([1-9][0-9]*)_([1-9][0-9]*)_([1-9][0-9]*)_([1-9][0-9]*)_([1-9][0-9]*)\.html$ index.php?cPath=$1_$2_$3_$4_$5_$6 [L] RewriteRule ^category_([1-9][0-9]*)_([1-9][0-9]*)_([1-9][0-9]*)_([1-9][0-9]*)_([1-9][0-9]*)\.html$ index.php?cPath=$1_$2_$3_$4_$5 [L] RewriteRule ^category_([1-9][0-9]*)_([1-9][0-9]*)_([1-9][0-9]*)_([1-9][0-9]*)\.html$ index.php?cPath=$1_$2_$3_$4 [L] RewriteRule ^category_([1-9][0-9]*)_([1-9][0-9]*)_([1-9][0-9]*)\.html$ index.php?cPath=$1_$2_$3 [L] RewriteRule ^category_([1-9][0-9]*)_([1-9][0-9]*)\.html$ index.php?cPath=$1_$2 [L] RewriteRule ^category_([1-9][0-9]*)\.html$ index.php?cPath=$1 [L] RewriteRule ^product_([1-9][0-9]*)\.html$ product_info.php?&products_id=$1 [L] Hope it works!
  4. I was getting 404 errors, did you remove the comments?
  5. Disregard last code it will have undesirable effects even though it appears to work. Sorry for the confusion. Comments Russ McCabe # Change filename to .htaccess # Remove these comments # Upload in ASCII mode # chmod .htaccess 644 # Make sure in httpd.conf AllowOverride All is in <Directory> for your website # Good Luck. RewriteEngine on Options +FollowSymlinks DirectoryIndex home.html home.php index.php index.html AddType application/x-httpd-php php php4 php3 html htm RewriteRule ^sitemap_categories.html$ sitemap_categories.php [L] RewriteRule ^sitemap_products.html$ sitemap_products.php [L] RewriteRule ^category_([1-9][0-9]*)_([1-9][0-9]*)_([1-9][0-9]*)_([1-9][0-9]*)_([1-9][0-9]*)_([1-9][0-9]*)\.html$ index.php?cPath=$1_$2_$3_$4_$5_$6 [L] RewriteRule ^category_([1-9][0-9]*)_([1-9][0-9]*)_([1-9][0-9]*)_([1-9][0-9]*)_([1-9][0-9]*)\.html$ index.php?cPath=$1_$2_$3_$4_$5 [L] RewriteRule ^category_([1-9][0-9]*)_([1-9][0-9]*)_([1-9][0-9]*)_([1-9][0-9]*)\.html$ index.php?cPath=$1_$2_$3_$4 [L] RewriteRule ^category_([1-9][0-9]*)_([1-9][0-9]*)_([1-9][0-9]*)\.html$ index.php?cPath=$1_$2_$3 [L] RewriteRule ^category_([1-9][0-9]*)_([1-9][0-9]*)\.html$ index.php?cPath=$1_$2 [L] RewriteRule ^category_([1-9][0-9]*)\.html$ index.php?cPath=$1 [L] RewriteRule ^product_([1-9][0-9]*)\.html$ product_info.php?&products_id=$1 [L]
  6. By the way Here is a link to the alt_htaccess file in contributions 19 Jun 2004 - Alternative .htaccess file Heres the code RewriteEngine on Options +FollowSymlinks RewriteCond %{REQUEST_FILENAME} ^(.*)\.html$ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %1.php -f RewriteCond %{REQUEST_METHOD} (GET|HEAD|POST) RewriteRule ^(.*)\.html$ $1.php [L] RewriteRule ^category_([1-9][0-9]*)_([1-9][0-9]*)_([1-9][0-9]*)_([1-9][0-9]*)_([1-9][0-9]*$ RewriteRule ^category_([1-9][0-9]*)_([1-9][0-9]*)_([1-9][0-9]*)_([1-9][0-9]*)_([1-9][0-9]*$ RewriteRule ^category_([1-9][0-9]*)_([1-9][0-9]*)_([1-9][0-9]*)_([1-9][0-9]*)\.html$ index$ RewriteRule ^category_([1-9][0-9]*)_([1-9][0-9]*)_([1-9][0-9]*)\.html$ index.php?cPath=$1_$ RewriteRule ^category_([1-9][0-9]*)_([1-9][0-9]*)\.html$ index.php?cPath=$1_$2 [L] RewriteRule ^category_([1-9][0-9]*)\.html$ index.php?cPath=$1 [L] RewriteRule ^product_([1-9][0-9]*)\.html$ product_info.php?&products_id=$1 [L]
  7. SEO Sitemap Fix revised .htaccess file. The other one did not work, After hours of searching the forums I finally just wrote one. This will also make all your .php files accessable as .html files. Hope this helps. Comments?
  8. russmcduck

    Print the invoice from checkout_success.php

    Change In catalog/invoice.php replace with Sorry for the multiple posts, not enough coffee yet .... This one works.
  9. russmcduck

    Print the invoice from checkout_success.php

    catalog/invoice.php doooppppee
  10. russmcduck

    Print the invoice from checkout_success.php

    Thanks to Jason Judge for this code. replace With The html message echoed is optional, I added this for purchase without an account. and pay by check or money order. Enjoy
  11. russmcduck

    Easy Populate HELP!

    Everything is installed ok I think.. I can create the files in the temp directory and download them but can't upload them and split them. I have over 9000 products I am trying to upload so I know I need them split. I continue to get: The page cannot be displayed http://www.mydomian.com/admin/easypopulate.php?split=1 The file easypopulate.php is there in that directory. Wierd! thanks in advance for any help.
  12. I think I posted in the wrong place so forgive me this is not intended as a cross post but should be better suited here. I istalled Net terms and it won't permit a customer to choose any other method of payment. this code seems to be the problem // Check If Customer Has Credit (If That Option Is Chosen) $customer_credit = false; $check_credit = tep_db_query("select customers_credit_status, customers_credit_left from " . TABLE_CUSTOMERS . " where customers_id ='" . $customer_id . "'"); $credit = tep_db_fetch_array($check_credit); if ($credit['customers_credit_status'] == "enabled" || $credit['customers_credit_status'] == "suspended"){ $credit_allowed = 'true'; } else { $credit_allowed = 'false'; } if ($credit_allowed == 'false'){ echo '<script>alert("We're Sorry You Don't Seem To Have An Account With Us, Please Choose A Different Payment Method.");</script>'; echo '<script>history.go(-1);</script>'; } if ($credit_allowed == 'true') { if ($order->info['total'] > $credit['customers_credit_left']){ echo '<script>alert("Not Enough Store Credit In Your Account");</script>'; echo '<script>history.go(-1);</script>'; } if ($credit['customers_credit_status'] == "suspended"){ echo '<script>alert("Sorry Your Account Seems To Be Suspended Please Contact Us To Straighten Out This Matter.");</script>'; echo '<script>history.go(-1);</script>'; } } any suggestions thanks Russ
  13. russmcduck

    Contribution Request: Manual Order Entry

    will there be a new release of this contribution or could you please email me the latest, since it is to large to include in the download section at contributions? Thanks in advance
  14. russmcduck

    Challenge anybody to answer this

    Thanks for replying illicious but I figured out the prob and solved by moving everything into the webs root directory and changing the configure.php file. Thanks again!
  15. concerning live support when using the symbolic links to default.php and the includes folder so that a user can type in just the domain causes a page cannot be found when the javascript window.open is used to initiate live support. if you open the site with http://www.yourdomain.com/catalog/default.php it works just fine. Maybe I could get some suggestions. Do I need another symbolic link to another folder in domain root? Please Help Maybe I am answering my own question, I will look over default.php to see. Thanks in advance
×