Okay if I delete the .htaccess file the site works, but if a link is followed from a blog leading to a link on the old site:
Not Found
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.
My dreamweaver overwrote the original Zen .htccess file I believe it was written by Dr. Byte. Starting in small steps, I took the code I pasted previously in the first post and this is what I get going to the site:
Forbidden
You don't have permission to access /index.php on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
Does anyone have a copy of the entire page? I must be missing something in here.
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
So then I put this:
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
Redirect 301 /cgi/commerce.cgi?search=action&category=1100 https://www.uesakabarbell.com/index.php?main_page=index&cPath=2
Then I get back to this:
Not Found
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 thought the redirects are for old links out there will take them to the new location...?
I have an empty cgi bin on the server.
I also have the original code that goes in it as well.
I am not sure what the next step should be?
Thanks!
Bookmarks