HELP PLEASE!
I have 1.5.5f that was moved from a test server to my main server by Anne. I am having trouble with redirects. I am getting this 404 error:
The requested URL /cgi/commerce.cgi was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
I see this zen .httaccess file she must have installed.
Code:
# deny *everything*
<FilesMatch ".*">
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
Order Allow,Deny
Deny from all
</IfModule>
</FilesMatch>
# but now allow just *certain* necessary files:
<FilesMatch "(?i).*\.(js|css|html?|ico|jpe?g|gif|webp|png|swf|flv|xml|xsl|otf|ttf|woff|eot|svg|map)$">
<IfModule mod_authz_core.c>
Require all granted
</IfModule>
<IfModule !mod_authz_core.c>
Order Allow,Deny
Allow from all
</IfModule>
</FilesMatch>
IndexIgnore */*
<limit POST PUT>
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
Order Allow,Deny
Deny from all
</IfModule>
</limit>
## NOTE: If you want even greater security to prevent hackers from running scripts in this folder, uncomment the following line (if your hosting company will allow you to use OPTIONS):
# OPTIONS -Indexes -ExecCGI
##################
## Optional caching improvements
## Requires mod_header and mod_deflate to be enabled within Apache
##################
<IfModule mod_headers.c>
Header unset Pragma
FileETag None
Header unset ETag
#Header set Cache-Control "no-transform"
<FilesMatch "(?i).*\.(ico|jpe?g|gif|webp|png|otf|swf|flv|ttf|woff|eot|svg)$">
Header set Cache-control "max-age=864000, public, must-revalidate"
Header unset Last-Modified
</FilesMatch>
<FilesMatch "(?i).*\.(html|htm|xml|txt|xsl)$">
Header set Cache-control "max-age=7200, must-revalidate"
</FilesMatch>
</IfModule>
<IfModule mod_deflate.c>
<FilesMatch "(?i)\.(js|css)$">
SetOutputFilter DEFLATE
</FilesMatch>
</IfModule>
##################
## Optional improvements
## Requires mod_expires to be enabled within Apache
##################
<ifmodule mod_expires.c>
ExpiresActive On
ExpiresDefault A300
ExpiresByType application/x-javascript A3600
ExpiresByType text/css A3600
ExpiresByType image/gif A604800
ExpiresByType video/x-flv A604800
ExpiresByType application/pdf A604800
ExpiresByType text/html A300
ExpiresByType image/x-icon A86400
ExpiresByType image/jpeg A2592000
ExpiresByType image/png A2592000
</ifmodule>
I have written one like this with more redirect links:
Code:
rewriteengine on
rewritecond %{HTTPS} off
rewritecond %{HTTP_HOST} ^www.uesakabarbell.com$ [OR]
rewritecond %{HTTP_HOST} ^uesakabarbell.com$
rewriterule ^ "https\:\/\/uesakabarbell\.com\/" [R=301,L]
Redirect 301 /cgi/commerce.cgi?search=action&category=1200 https://www.uesakabarbell.com/index.php?main_page=index&cPath=1&zenid=tnr05tnljf1rotfd5ng1s4dca0
Redirect 301 /cgi/commerce.cgi?search=action&category=1100 https://www.uesakabarbell.com/index.php?main_page=index&cPath=2&zenid=tnr05tnljf1rotfd5ng1s4dca0
Redirect 301 /?do=custom https://www.uesakabarbell.com/index.php?main_page=index&cPath=3&zenid=tnr05tnljf1rotfd5ng1s4dca0
Redirect 301 /?do=company https://www.uesakabarbell.com/index.php?main_page=FILENAME_ABOUT_US&zenid=tnr05tnljf1rotfd5ng1s4dca0
Redirect 301 /index.php?do=contact https://www.uesakabarbell.com/index.php?main_page=contact_us&zenid=tnr05tnljf1rotfd5ng1s4dca0
I do not know what the one she has does. I am not sure if I can add my links to that existing one? Can I replace hers with this one?
I also see these files in my root directory:
page_not_found.php
ipn_main_handler.php
mcs_learn_more.html
nddbc.html
square_handler.php
vbv_learn_more.html
Not sure what they do.
It seems like there is more issues based on the 404 Not Found error. I have not gotten any replies from her and I need help on figuring this out.
Thank you in advance for any advise!
Bookmarks