htaccess need quick help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lakerslive
    Confirmed User
    • Aug 2012
    • 929

    #1

    htaccess need quick help

    Hello

    my host told me to use

    Options +Indexes

    because i can't view my script on
    domain.com/admin/ ( it gives me "ACCESS DENIED"

    so, what would the code look like?

    tnx
  • lakerslive
    Confirmed User
    • Aug 2012
    • 929

    #2
    i tried

    </IfModule mod_rewrite.c>
    rewriterule .* - e=http_authorization:%{http:Authorization}]
    RewriteBase /
    RewriteRule ^index\.php$
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . / index.php [L]
    </IfModule>

    but doesn't work?

    Comment

    • Lief Thorson
      So Fucking Banned
      • Apr 2023
      • 528

      #3
      Originally posted by lakerslive
      i tried

      </IfModule mod_rewrite.c>
      rewriterule .* - e=http_authorization:%{http:Authorization}]
      RewriteBase /
      RewriteRule ^index\.php$
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule . / index.php [L]
      </IfModule>

      but doesn't work?
      If you do not turn the rewrite engine on, it cannot rewrite anything. Also, put options +Indexes at the top.

      like this
      Code:
      Options +Indexes
      
      <IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteBase /
        RewriteRule ^index\.php$ - [L]
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule . /index.php [L]
        RewriteRule .* - [E=http_authorization:%{HTTP:Authorization}]
      </IfModule>

      Comment

      • 2MuchMark
        Mark of 2Much.net
        • Aug 2004
        • 50977

        #4
        ^^ This ^^.

        Comment

        • Lief Thorson
          So Fucking Banned
          • Apr 2023
          • 528

          #5
          I wonder if he ever came back to read this. I hate taking my time to be helpful.

          Comment

          • fris
            Too lazy to set a custom title
            • Aug 2002
            • 55679

            #6
            nginx would be better
            Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

            Comment

            • RyuLion
              • Mar 2003
              • 32369

              #7
              Originally posted by Lief Thorson
              I wonder if he ever came back to read this. I hate taking my time to be helpful.
              I won't worry about that man, just move on, some people will others won't.

              Adult Biz Consultant A tech head since 1995
              Affiliate Support: Chaturbate | CCBill Live

              Comment

              • JesseQuinn
                feeding the wolves
                • Aug 2012
                • 6622

                #8
                Originally posted by Lief Thorson
                I wonder if he ever came back to read this. I hate taking my time to be helpful.
                no time wasted in putting good energy out there

                personally, I found your code to be a gripping page-turner. I shall def tune in for the next thrilling installment
                throwing molotav cocktails at the precinct

                Comment

                Working...