Results 1 to 3 of 3
  1. #1
    Full Member c4's Avatar
    Join Date
    January 18th, 2005
    Posts
    488
    I am using .htaccess settings to ... emmm, map (?) ... an URL for a script of mine like this:

    I use http://www.server.com/path/a-XX
    instead of http://www.server.com/path/script.cgi?i=XX

    I have added these two lines in to .htaccess and it all works fine on my server A:

    rewriteEngine on
    rewriteRule ^a\-(.*)$ script.cgi?i\=$1 [L]

    Then I tried the same .htaccess on my server B and get a standard "Permision denied" error whenever I want to open a file in the same dir where .htaccess is.

    I tried to edit it by adding...

    <Limit GET POST>
    order deny,allow
    allow from all
    </Limit>

    ... but still the same error (I'm used to 505 Internal Server Error's but not to these ones [img]/infopop/emoticons/icon_biggrin.gif[/img] )

    When I delete

    rewriteEngine on
    rewriteRule ^a\-(.*)$ script.cgi?i\=$1 [L]

    from the .htaccess everything is working again [img]/infopop/emoticons/icon_confused.gif[/img]


    Any ideas?

    YOURsoft - worlds 1st dealware scripts!

  2. #2
    Full Member c4's Avatar
    Join Date
    January 18th, 2005
    Posts
    488
    Anybody? [img]/infopop/emoticons/icon_frown.gif[/img]



    YOURsoft - worlds 1st dealware scripts!
    NEW - Join YOURsoft "affiliate program for affiliate software"!

  3. #3
    Full Member
    Join Date
    January 18th, 2005
    Posts
    226
    Try this on server B

    ------------------------------

    AddHandler cgi-script .cgi

    RewriteEngine on
    Options FollowSymlinks ExecCGI
    RewriteBase /
    rewriteRule ^a\-(.*)$ script.cgi?i\=$1 [L, QSA]

  4. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Htaccess File Problem
    By silver93350 in forum Midnight Cafe'
    Replies: 44
    Last Post: June 24th, 2011, 03:25 PM
  2. Problem with virtual.dir and mod_rewrite
    By forefront in forum Cusimano.com Scripts
    Replies: 2
    Last Post: February 13th, 2005, 10:35 AM
  3. Problem with big .htaccess file?
    By Affiliate Ian in forum Midnight Cafe'
    Replies: 2
    Last Post: August 20th, 2004, 02:40 PM
  4. mod_rewrite/.htaccess question
    By dak142 in forum Midnight Cafe'
    Replies: 6
    Last Post: July 19th, 2004, 03:19 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
  •