DragonflyCMS Projects > BizStore > htaccess/mod rewrite not working > Community Forums > Phoenix Netology
Forum Index > eCommerce > BizStore

htaccess/mod rewrite not working Reply to topic


Im not sure what i did wrong, i been out of the game awhile, I updated my site, and updated bizstore module, i broke the mod rewrite, but not sure what i did incorrectly. I added the supplied code to the htaccess file inside the <IfModule mod_rewrite.c> RewriteEngine On # Check for Santy Worms and redirect them to a fail page #------------------------------------------------------------------- # Variant -1 # uncomment if you dont use LWP # RewriteCond %{HTTP_USER_AGENT} ^LWP [NC,OR] # Variant -2 RewriteCond %{REQUEST_URI} ^visualcoders [NC,OR] # Variant -3 RewriteCond %{QUERY_STRING} rush=([^&]+) [NC,OR] # Variant -4 RewriteCond %{HTTP:x-moz} ^prefetch [NC,OR] RewriteCond %{X-moz} ^prefetch [NC,OR] # block local file, sql and remote attacks RewriteCond %{QUERY_STRING} \=../ [NC,OR] RewriteCond %{QUERY_STRING} "%20UNION" [NC,OR] RewriteCond %{QUERY_STRING} \=http:// [NC] # deny them RewriteRule ^.*$ - [F] #------------------------------------------------------------------- RewriteCond %{REQUEST_FILENAME} -f [NC,OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.*)$ - [L] # if you use LEO and CPG-Nuke is installed in a sub-directory like '/html', # remove that # before RewriteBase and rename /html to the path of the sub-directory # RewriteBase /html # RewriteRule ^index\.html /index.php RewriteRule ^([a-zA-Z0-9_=+-]+)(/|\.html)$ index=$1 [L,S=5] RewriteRule ^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)(/|\.html)$ index=$1&file=$2 [L,S=4] RewriteRule ^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)$ index=$1&file=$2 [L,S=3] RewriteRule ^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)/(.*)(/|\.html)$ index=$1&file=$2&$3 [L,S=1] RewriteRule ^([a-zA-Z0-9_]+)/(.*)(/|\.html)$ index=$1&file=index&$2 [L] RewriteRule ^index=(.*[^/])/(.*) index=$1&$2 [N,L] RewriteRule ^index=(.*) index.php?name=$1 [L] #BizStore RewriteRule ^amazon/(.*)/(.*)-search-(.*)-(.*)-(.*).html index.php?name=BizStore&Operation=ItemSearch&SearchIndex=$1&$2=$3&Sort=$4&ItemPage=$5 [QSA,L] RewriteRule ^amazon/(.*)/(.*)-search-(.*)-(.*).html index.php?name=BizStore&Operation=ItemSearch&SearchIndex=$1&$2=$3&Sort=$4 [QSA,L] RewriteRule ^amazon/(.*)/(.*)-search-(.*).html index.php?name=BizStore&Operation=ItemSearch&SearchIndex=$1&$2=$3 [QSA,L] RewriteRule ^amazon/(.*)/browse-(.*)-(.*)-(.*).html index.php?name=BizStore&Operation=ItemSearch&SearchIndex=$1&BrowseNode=$2&Sort=$3&ItemPage=$4 [QSA,L] RewriteRule ^amazon/(.*)/browse-(.*)-(.*).html index.php?name=BizStore&Operation=ItemSearch&SearchIndex=$1&BrowseNode=$2&Sort=$3 [QSA,L] RewriteRule ^amazon/(.*)/browse-(.*).html index.php?name=BizStore&Operation=ItemSearch&SearchIndex=$1&BrowseNode=$2 [QSA,L] RewriteRule ^amazon/(.*)/review-(.*).html index.php?name=BizStore&Operation=CustomerReviews&ItemId=$1&ReviewPage=$2 [QSA,L] RewriteRule ^amazon/(.*)/(.*).html index.php?name=BizStore&Operation=ItemLookup&ItemId=$1 [QSA,L] RewriteRule ^amazon/(.*).html?$ index.php?name=BizStore&SearchIndex=$1 [QSA,L] </IfModule>
I think this is here i messed up not sure. I think i remember that the read me use to tell us where to at to place the added code to the htaccess file, but then again my memory is not all that good. Thanks

DizWebDesign

Please enter your server specs in your user profile! 😢


No problem - it's in the admin Read Me Module Setup section.

2. In this distribution, there is a file called addto.htaccess - extract the lines of code and add them to your existing .htaccess file, immediately above the following line,
# if you use LEO and CPG-Nuke is installed in a sub-directory like '/html'

Donations & Audit for DragonflyCMS

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):


Thank you i found it. I been out of it to long. I cant believe i missed that. Thanks

DizWebDesign

Please enter your server specs in your user profile! 😢

All times are Australia/Adelaide


Jump to: