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)
-   -   Quick htaccess question (https://gfy.com/showthread.php?t=956731)

comeplay 03-03-2010 09:56 PM

Quick htaccess question
 
say I have a script upload files to domain.com/sub/1.jpg how could I allow a direct request to domain.com/1.jpg to work without redirecting?

fris 03-03-2010 10:13 PM

this should work

Code:

Options +FollowSymLinks
RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule !^sub(/.*)?$ /sub%{REQUEST_URI} [QSA,L]


Dappz 03-03-2010 10:15 PM

thats cool and hot grrrrrrrrrrrrrrrrr

comeplay 03-03-2010 10:25 PM

Quote:

Originally Posted by fris (Post 16918323)
this should work

Code:

Options +FollowSymLinks
RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule !^sub(/.*)?$ /sub%{REQUEST_URI} [QSA,L]


You're the man!

fris 03-04-2010 07:46 AM

no problem, glad to help


All times are GMT -7. The time now is 06:24 AM.

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