GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   htaccess need quick help (https://gfy.com/showthread.php?t=1364534)

lakerslive 05-03-2023 04:48 PM

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 05-03-2023 04:58 PM

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?

Lief Thorson 05-03-2023 06:39 PM

Quote:

Originally Posted by lakerslive (Post 23130943)
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>


2MuchMark 05-03-2023 07:11 PM

^^ This ^^.

Lief Thorson 05-04-2023 02:08 PM

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

fris 05-04-2023 03:05 PM

nginx would be better

RyuLion 05-04-2023 03:33 PM

Quote:

Originally Posted by Lief Thorson (Post 23131211)
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. :thumbsup

JesseQuinn 05-04-2023 03:58 PM

Quote:

Originally Posted by Lief Thorson (Post 23131211)
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 :upsidedow


All times are GMT -7. The time now is 10:53 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123