Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 06-09-2014, 11:52 PM   #1
RummyBoy
Confirmed User
 
Join Date: Dec 2009
Posts: 2,157
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.

Last edited by RummyBoy; 06-09-2014 at 11:53 PM..
RummyBoy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-10-2014, 12:18 AM   #2
RummyBoy
Confirmed User
 
Join Date: Dec 2009
Posts: 2,157
http://webdesign.about.com/od/beginn...d-in-slash.htm

This is making the point.
RummyBoy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.