Getting a 404 error using mod_rewrite with FF AVG Toolbar

For Joomla! 1.5 Coding related discussions, please use: http://groups.google.com/group/joomla-dev-general
Forum rules
Please use the mailing list here: http://groups.google.com/group/joomla-dev-general rather than this forum.
Locked
banshee_z71
Joomla! Apprentice
Joomla! Apprentice
Posts: 17
Joined: Tue Nov 07, 2006 8:03 am
Contact:

Getting a 404 error using mod_rewrite with FF AVG Toolbar

Post by banshee_z71 » Sat Nov 22, 2008 12:01 am

First off I want to thank you for having a great forum. I've learned a lot but still have far to go. TIA. I know this isn't really a mod_rewrite for but thought someone might have some insight.

After looking at my logs everytime this page https://secure.avgantivirus.com/wdshop/renewal-upgrade is accessed it throws a 404 error. But my browser still goes to the page unless AVG Toolbar is turned on in FF. Not sure how it is possible to access this page when a 404 is being logged. I am thinking it is something wrong with how the httpd.conf is set up but I am hoping it can be corrected in the .htaccess file.

Here is the 404 error when I refresh the page I am currently on with the Toolbar turned off. It still goes to this page but always creates this error.
GET /wdshop/renewal-upgrade HTTP/1.1" 404 10709 "https://secure.avgantivirus.com/wdshop/renewal-upgrade" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.3) Gecko/2008100716 Firefox/3.0.3 Flock/2.0"

Here is my very bad looking .htaccess file.

Code: Select all

ErrorDocument 404 /error-404.php

##  Can be commented out if causes errors, see notes above.
Options +FollowSymLinks

#
#  mod_rewrite in use

RewriteEngine On

#  Uncomment following line if your webserver's URL
#  is not directly related to physical file paths.
#  Update Your Joomla Directory (just / for root)

# RewriteBase /

########## Begin - Joomla! core SEF Section
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} ^/

RewriteRule ^wdshop/userinfo/show_order/(.*)/? /index.php?option=com_wdshop&tmpl=component&view=userinfo&viewOrder=$1 [L]

RewriteRule ^wdshop/product_list/(.*)/? index.php?option=com_wdshop&view=categories&product_list=$1 [L]
RewriteRule ^wdshop/addItemFromCategory index.php?option=com_wdshop&controller=cart&view=cart&task=addFromRadio [L]
RewriteRule ^wdshop/product/(.*)/? /index.php?option=com_wdshop&view=products&product_id=$1 [L]
RewriteRule ^wdshop/category/(.*)/? /index.php?option=com_wdshop&view=categories&category_id=$1 [L]

RewriteRule ^wdshop/edit_address /index.php?option=com_wdshop&controller=cart&view=userinfo&task=edit_address [L]
RewriteRule ^wdshop/delete_address /index.php?option=com_wdshop&controller=cart&view=userinfo&task=delete_address [L]
RewriteRule ^wdshop/new_user_info /index.php?option=com_wdshop&controller=cart&view=userinfo&task=new_user_info [L]
RewriteRule ^wdshop/update_user_basket_info /index.php?option=com_wdshop&controller=cart&view=cart&task=update_user_info [L]
RewriteRule ^wdshop/edit_user_info /index.php?option=com_wdshop&controller=cart&view=userinfo&task=edit_user_info [L]
RewriteRule ^wdshop/edit_billing_address /index.php?option=com_wdshop&controller=cart&view=userinfo&task=edit_billing_address [L]
RewriteRule ^wdshop/userinfo/(.*) /index.php?option=com_wdshop&view=userinfo&format=html [L] 
RewriteRule ^wdshop/addItem/(.*)/? /index.php?option=com_wdshop&view=cart&addItem=$1 [L] 
RewriteRule ^wdshop/empty_cart /index.php?option=com_wdshop&controller=cart&view=cart&task=empty_cart [L] 
RewriteRule ^wdshop/renewal-upgrade-options/(.*)/? index.php?option=com_wdshop&view=products&renewal=renewal-upgrade-options&serial=$1 [L]

RewriteRule ^wdshop/renewal-upgrade index.php?option=com_wdshop&view=products&renewal=renewal-upgrade [L] 
RewriteRule ^wdshop/cross-upgrade/(.*)/? index.php?option=com_wdshop&view=products&upgrade=$1 [L] 
RewriteRule ^wdshop/increase/(.*)/? index.php?option=com_wdshop&view=products&increase=$1 [L] 
RewriteRule ^wdshop/addRenewal /index.php?option=com_wdshop&controller=cart&view=cart&task=addRenewal [L]

RewriteRule ^wdshop/checkout/one /index.php?option=com_wdshop&view=cart&checkout=one&turnOnSSL=on [L]
RewriteRule ^wdshop/checkout/two/error/(.*)/? /index.php?option=com_wdshop&view=cart&checkout=two&error=$1 [L]
RewriteRule ^wdshop/checkout/two /index.php?option=com_wdshop&view=cart&checkout=two [L]
RewriteRule ^wdshop/checkout/three /index.php?option=com_wdshop&view=cart&checkout=three [L]

RewriteRule ^wdshop/checkout/edit-billing-info /index.php?option=com_wdshop&view=cart&checkout=edit-billing-info [L]
RewriteRule ^wdshop/checkout/complete/(.*)/?  /index.php?option=com_wdshop&view=cart&checkout=complete&userinfo=$1 [L]

RewriteRule ^wdshop/checkout/ index.php?option=com_wdshop&view=cart&controller=cart&task=secure_checkout [L]

RewriteRule ^wdshop/get_all_batch /index.php?option=com_wdshop&view=cart&controller=cart&task=get_all_batch [L]
RewriteRule ^wdshop/update_quantity /index.php?option=com_wdshop&controller=cart&view=cart&task=update_quantity [L]
RewriteRule ^wdshop/delete_item/(.*)/? /index.php?option=com_wdshop&view=cart&delete_item=$1 [L]
RewriteRule ^wdshop/view_cart /index.php?option=com_wdshop&view=cart [L]
RewriteRule ^wdshop/category /index.php?option=com_wdshop&view=categories [L]
RewriteRule ^wdshop/update_user_info/(.*)/? /index.php?option=com_wdshop&view=cart&update_user_info=$1 [L]
RewriteRule ^wdshop/checkout/two /index.php?option=com_wdshop&view=cart&controller=cart&task=add_address [L]
RewriteRule ^wdshop index.php?option=com_wdshop&view=categories [L]

RewriteRule ^renew-now/(.*)/? /renew-scripts/renew-now.php?lickey=$1 [L]

########## Begin - Joomla! core SEF Section
############# Use this section if you are using a 3rd party (Non Joomla! core) SEF extension - e.g. OpenSEF, 404_SEF, 404SEFx, SEF Advance, etc
#
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] 		##optional - see notes##
RewriteCond %{REQUEST_URI} (/|\.atom|\.rss|\.htm|\.php|\.pdf|\.html|/[^.]*)$  [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
#
########## End - Joomla! core SEF Section
And it still throws the error with Joomla seo stuff turned off and removed from .htaccess

If you need any addition info please let me know. Thanks :)

fabriciom
Joomla! Apprentice
Joomla! Apprentice
Posts: 19
Joined: Mon May 05, 2008 11:23 pm

Re: Getting a 404 error using mod_rewrite with FF AVG Toolbar

Post by fabriciom » Sun Nov 23, 2008 1:47 pm

I had problems with mod_rewrite. If im you make sure its working. Before you try to use it. I had to add:

<Directory "/projects/elpsoe">
AllowOverride all
</Directory>

To my httpd.conf to make it work.

perspective
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 154
Joined: Thu Oct 04, 2007 7:45 pm

Re: Getting a 404 error using mod_rewrite with FF AVG Toolba

Post by perspective » Fri May 25, 2012 12:12 pm

fabriciom wrote:I had problems with mod_rewrite. If im you make sure its working. Before you try to use it. I had to add:

<Directory "/projects/elpsoe">
AllowOverride all
</Directory>

To my httpd.conf to make it work.
This worked perfect. Thank you.


Locked

Return to “Joomla! 1.5 Coding”