Exclusive eBooks, Software Solutions, Quality Guaranteed
 
Web NukeBiz
Welcome to NukeBiz · Members
Amazon
show cart or checkout0 items
Cart Value: 0.00

Forums » DragonflyCMS Projects » BizStore » htaccess/mod rewrite not working
htaccess/mod rewrite not working
Amazon shop, integrated Google adsense, price check, ECS4 feeds.
Topic initiation via Bugger.

Post new topic    Reply to topic    Printer Friendly Page     Forum Index »  eCommerce » BizStore

View previous topic :: View next topic  
Author Message
Dizfunkshunal
Operator
Operator

Offline Offline
Joined: May 26, 2007
Posts: 69

PostPosted: Mon Dec 03, 2012 12:22 pm
Post subject: htaccess/mod rewrite not working

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
Code::
<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

Dizfunkshunal's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
mulitple server setups/ DF9 and 10
Back to top
View user's profile Visit poster's website
Phoenix
Chairman
Chairman

Offline Offline
Joined: Mar 18, 2004
Posts: 1533
Location: Netizen
PostPosted: Mon Dec 03, 2012 3:40 pm
Post subject: Re: htaccess/mod rewrite not working

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

Quote::
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'

_________________
DonationsPro for vBulletin, SMF, MyBB, DragonflyCMS


Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website ICQ Number Yahoo Messenger Photo Gallery
Dizfunkshunal
Operator
Operator

Offline Offline
Joined: May 26, 2007
Posts: 69

PostPosted: Mon Dec 10, 2012 2:46 am
Post subject: Re: htaccess/mod rewrite not working

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

_________________
DizWebDesign

Dizfunkshunal's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
mulitple server setups/ DF9 and 10
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic    Reply to topic    Printer Friendly Page    Forum Index »  eCommerce » BizStore
Page 1 of 1
All times are GMT + 9.5 Hours



Jump to:  


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum