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 Query - Server Admins Get Here (https://gfy.com/showthread.php?t=1142732)

RummyBoy 06-09-2014 11:52 PM

HTACCESS Query - Server Admins Get Here
 
Im trying to settle an argument here.
I want to hear your views about what is wrong with this HTACCESS code:


RewriteEngine On
Options +FollowSymlinks
RewriteCond %{HTTP_HOST} ^([^.]+\.)+([^.]+\.[^.]+)\.?(:[0-9]+)?$
RewriteRule (.*) http://%2/$1 [R=301,L]
RewriteCond %{HTTP_REFERER} .
RewriteCond %{HTTP_REFERER} !^http://(www\.)?domain\.com [NC]
RewriteRule \.(jpe?g|gif)$ - [F]

ErrorDocument 404 http://domain.com
DirectoryIndex index.html

Redirect 301 /download http://domain.com



My original contention is that in the last two instances of domain.com, it would be better if the format was: http://domain.com/ (note the addition of the forward slash)

My reasoning is because if you miss out the forward slash you are forcing a redirect to the forward slash version which is correct and this can add some delay. Your views greatly appreciated.

RummyBoy 06-10-2014 12:18 AM

http://webdesign.about.com/od/beginn...d-in-slash.htm

This is making the point.


All times are GMT -7. The time now is 03:59 PM.

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