i would look at the complete htaccess file.
i think it could be a question of the ordering of the rules there.
Printable View
i would look at the complete htaccess file.
i think it could be a question of the ordering of the rules there.
I will check the the debug log. Here is one of my old url links from pinterest for an example: https://enchantedcottageshop.com/sho...-vintage-style
Today's debug log: [14-Dec-2024 07:14:36 UTC] Request URI: /shop/index.php?main_page=unsubscribe&action=unsubscribe, IP address: 80.85.245.241, Language id 1
#1 require(/home/enchant1/public_html/shop/includes/modules/pages/unsubscribe/header_php.php) called at [/home/enchant1/public_html/shop/index.php:35]
--> PHP Warning: Undefined array key "addr" in /home/enchant1/public_html/shop/includes/modules/pages/unsubscribe/header_php.php on line 29.
I also noticed that my code to block bots in the .htaccess file is no longer blocking them :( I will rearrange the order of coding to see if that makes a difference. As of now, my codes are after Ultimate SEO's codes in the file. I will put my codes first to see if that makes a difference.
The url redirect code at the beginning causes the Ultimate SEO not to work but it works fine with the bot block coding in the beginning. I will have to wait and see if the bots will be blocked, I sure hope so.
The bots are not being blocked anymore because they accessed my site today. So my old urls were redirecting and bots were being blocked before the ultimate seo plugin. I wish I was smart with coding, I don't understand why the ultimate seo codes in .htaccess are causing my redirecting codes and bot block codes not to work :dontgetit
Code:RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} (crawl|AhrefsBot|SemrushBot) [NC]
RewriteRule .* - [F,L]
# Handles the new URL formats
RewriteRule ^(.*)-c-([0-9_]+)/(.*)-p-([0-9]+)(.*)$ index\.php?main_page=product_info&products_id=$4&cPath=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-c-([0-9_]+)/(.*)-pi-([0-9]+)(.*)$ index\.php?main_page=popup_image&pID=$4&cPath=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-c-([0-9_]+)/(.*)-pr-([0-9]+)(.*)$ index\.php?main_page=product_reviews&products_id=$4&cPath=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-c-([0-9_]+)/(.*)-pri-([0-9]+)(.*)$ index\.php?main_page=product_reviews_info&products_id=$4&cPath=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-c-([0-9_]+)/(.*)-prw-([0-9]+)(.*)$ index\.php?main_page=product_reviews_write&products_id=$4&cPath=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-c-([0-9_]+)/(.*)-aaq-([0-9]+)(.*)$ index\.php?main_page=ask_a_question&pid=$4&cPath=$2&%{QUERY_STRING} [L]
# Original (unchanged) URL formats
RewriteRule ^(.*)-p-([0-9]+)(.*)$ index\.php?main_page=product_info&products_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-m-([0-9]+)(.*)$ index\.php?main_page=index&manufacturers_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-pi-([0-9]+)(.*)$ index\.php?main_page=popup_image&pID=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-pr-([0-9]+)(.*)$ index\.php?main_page=product_reviews&products_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-pri-([0-9]+)(.*)$ index\.php?main_page=product_reviews_info&products_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-prw-([0-9]+)(.*)$ index\.php?main_page=product_reviews_write&products_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-aaq-([0-9]+)(.*)$ index\.php?main_page=ask_a_question&pid=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-ezp-([0-9]+)(.*)$ index\.php?main_page=page&id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-c-([0-9_]+)(.*)$ index\.php?main_page=index&cPath=$2&%{QUERY_STRING} [L]
# Rewrite all other requests (if the file / directory does not exist)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index\.php?main_page=$1&%{QUERY_STRING} [L]