Results 1 to 3 of 3
  1. #1
    Newbie
    Join Date
    April 22nd, 2005
    Posts
    31
    Multi DYSE and htaccess
    I know enough about htaccess to be dangerous

    on a single domain I am running GoCollect and 1 dyse and they work fine
    current htacess is

    RewriteEngine on
    RewriteBase /
    RewriteRule ^gocollect.* - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ cgi-bin/dyse/view.pl?merch=genericgifts&dir=&path=$1 [L]

    but I want to add two more
    so I tried:
    RewriteEngine on
    RewriteBase /
    RewriteRule ^gocollect.* - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ cgi-bin/dyse/view.pl?merch=genericgifts&dir=&path=$1 [L]
    RewriteRule ^(sleepware)(/.*)?$ cgi-bin/dyse/view.pl?merch=cfb&dir=$1&path=$2 [L]
    RewriteRule ^(cartoon)(/.*)?$ cgi-bin/dyse/view.pl?merch=kimmyshop&dir=$1&path=$3 [L]


    that did not work, so I am looking for a little help in how to config htaccess to add the other two merchants

    Thank you

    Mike

  2. #2
    ABW Ambassador cusimano's Avatar
    Join Date
    January 18th, 2005
    Location
    Toronto, Canada
    Posts
    1,369
    RewriteEngine on
    RewriteBase /

    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.+$ - [L]

    RewriteRule ^gocollect.* - [L]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(sleepware)(/.*)?$ cgi-bin/dyse/view.pl?merch=cfb&dir=$1&path=$2 [L]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(cartoon)(/.*)?$ cgi-bin/dyse/view.pl?merch=kimmyshop&dir=$1&path=$2 [L]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ cgi-bin/dyse/view.pl?merch=genericgifts&dir=&path=$1 [L]


    The rule with the ^(.*)$ has to go last because it matches everything. The RewriteCond at the top (with -d) lets real directories (as compared to virtual directories) go through as is.

    Yours truly,
    Cusimano.Com Corporation
    per: David Cusimano

  3. #3
    Newbie
    Join Date
    April 22nd, 2005
    Posts
    31
    Thank you David.

    Mike

  4. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Wordpress .htaccess and dyse
    By jazzylee77 in forum Cusimano.com Scripts
    Replies: 2
    Last Post: February 27th, 2008, 11:27 PM
  2. Dyse Allposters?
    By reaper in forum Cusimano.com Scripts
    Replies: 1
    Last Post: July 26th, 2005, 04:57 PM
  3. New Dyse with sitemap, not...
    By mmcbee in forum Cusimano.com Scripts
    Replies: 5
    Last Post: July 14th, 2005, 05:33 PM
  4. DySE::Calendars
    By bhey in forum Cusimano.com Scripts
    Replies: 2
    Last Post: July 3rd, 2005, 08:30 AM
  5. Multi Cheap Mini website vs Multi domain Hosting
    By probiz in forum Domains & Hosting
    Replies: 2
    Last Post: December 30th, 2003, 06:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •