Results 1 to 3 of 3
  1. #1
    Join Date
    May 18th, 2005
    Rewrite Home Page Problem
    Below is what i am using in my .htaccess file and I do get the scropt to show as my Home page no problem.

    RewriteEngine on
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ cgi-bin/dyse/$1 [L]

    Here is where the problem is. I would like to be able to keep all my subdirectories so they show in my browser without the script home page showing up. The original individual files(prior web pages I created) show in the home directory but when I go to view a subdirectory then the script home page is shown.
    To be more specific I only want the scipt to show as homepage index file without all other page/directory access also defaulting to my script home.

  2. #2
    ABW Ambassador cusimano's Avatar
    Join Date
    January 18th, 2005
    Toronto, Canada
    Use the following 6 lines in your .htaccess file instead:

    RewriteEngine on
    RewriteBase /

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

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ cgi-bin/dyse/$1 [L]

    The extra two lines cause sub-directories to not be processed by DySE. The first of the two lines checks to see if the user requested a directory that really exists on the hard drive of the server (not a virtual directory), and the 2nd line checks if it is a sub-directory (not the home page); and if those two conditions are met then the .htaccess exits (before reaching the DySE lines), and the server then displays what the user requested.

    Yours truly,
    Cusimano.Com Corporation
    per: David Cusimano

  3. #3
    Join Date
    May 18th, 2005
    Worked Just Fine
    It works just fine now. Thanks

  4. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Dell Home and Home Office problem
    By sunshiner in forum Commission Junction - CJ
    Replies: 4
    Last Post: November 5th, 2010, 11:07 AM
  2. Home Network Question/Problem...
    By ~Michelle in forum Midnight Cafe'
    Replies: 5
    Last Post: July 17th, 2006, 02:02 PM
  3. Walter Drake / Home Marketplace links go to home page
    By Tracy in forum Commission Junction - CJ
    Replies: 9
    Last Post: June 27th, 2006, 06:46 PM
  4. Problem: Nav bar only works on home page
    By Ron Bechdolt in forum Programming / Datafeeds / Tools
    Replies: 2
    Last Post: November 17th, 2002, 08:42 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