X Nations

X Nations (http://www.xnations.com/index.php)
-   General Webmaster Business and Discussions (http://www.xnations.com/forumdisplay.php?f=2)
-   -   .htaccess question (http://www.xnations.com/showthread.php?t=3067)

Easton 04-25-2003 06:32 PM

.htaccess question
 
this is not my strong point... i have written my file, but dunno where i am supposed to upload it to (ie. directory)

i also heard i have to upload is as binary file or something

here is what i have written so far:

ErrorDocument 302 /girls.htm
ErrorDocument 401 /girls.htm
ErrorDocument 403 /girls.htm
ErrorDocument 404 /girls.htm
ErrorDocument 408 /girls.htm
ErrorDocument 500 /girls.htm
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://slinkylinks.com [NC]
RewriteCond %{HTTP_REFERER} !^http://www.slinkylinks.com [NC]
RewriteCond %{HTTP_REFERER} !^http://216.127.70.136 [NC]
RewriteRule .\. (wav|mp3|mp2|rm|ra|ram|au|aiff|wma|mov|zip|mpg|mpe
g|avi|jpg|gif)$ - [F,


thanks in advance for any help you can offer...

Yo Adrian 04-25-2003 07:00 PM

You wanna upload it to your root directory......in ASCII mode :)

Pidgin 04-25-2003 07:19 PM

The last line with the "RewriteRule" is illegal and incomplete.
Coming to think of it- I don't understand that .htaccess code at all.
What are you trying to do there?

Anyway Easton, what did you do to Slim? :confused:
:cool:

Easton 04-25-2003 08:31 PM

it could very well be that my code is flawed... i know shit about .htaccess

hmmm.... i think i should give up

Easton 04-25-2003 08:48 PM

ok, here is my last attempt... is this any better?

ErrorDocument 302 http://www.slinkylinks.com/girls.htm
ErrorDocument 401 http://www.slinkylinks.com/girls.htm
ErrorDocument 403 http://www.slinkylinks.com/girls.htm
ErrorDocument 404 http://www.slinkylinks.com/girls.htm
ErrorDocument 408 http://www.slinkylinks.com/girls.htm
ErrorDocument 500 http://www.slinkylinks.com/girls.htm
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://slinkylinks.com [NC]
RewriteCond %{HTTP_REFERER} !^http://www.slinkylinks.com [NC]
RewriteCond %{HTTP_REFERER} !^http://216.127.70.136 [NC]
RewriteRule .\.(wav|mp3|mp2|rm|ra|ram|au|aiff|wma|mov|zip|mpg| mpeg|avi|jpg|gif)$ - [F,L]

now where do i upload it to? and does this have to be an html page or a text page? how do i upload in ASCII? man i am so screwed... *sigh*

Pidgin 04-25-2003 09:30 PM

RewriteRule .\.(wav|mp3|mp2|rm|ra|ram|au|aiff|wma|mov|zip|mpg| mpe
g|avi|jpg|gif)$ - [F,L]

and not

RewriteRule .\. (wav|mp3|mp2|rm|ra|ram|au|aiff|wma|mov|zip|mpg|mpe
g|avi|jpg|gif)$ - [F,L]

You had a space between the .\. and the (wav...

If you delete that space you should be ok :cool:

You should upload it to where the index page of your site is located.
Also - its not a text file or an html file.
The file MUST be called ".htaccess"
That is a file with NO name and of an extention of "htaccess".
ok?

(to be geekly accurate - this is a hidden [that is that a dot in the beginning of the filename means] file named htaccess
If you have problems uploading it, just upload it with a name of htaccess.txt and rename it to ".htaccess" or remane it to "htaccess" and make it hidden.

Easton 04-25-2003 09:41 PM

thank you very much Ron, i will try it tomorrow

i just got a booty call from a friend who broke up with her boyfriend, so i have to "be there for her" right now... lucky me

Mister X 04-26-2003 11:34 AM

Quote:

Originally posted by Easton
thank you very much Ron, i will try it tomorrow

i just got a booty call from a friend who broke up with her boyfriend, so i have to "be there for her" right now... lucky me

Hahaha. Slut! :D

Most ftp programs will send it as ascii or binary automatically based on the extension. If not there are probably 2 buttons in the program... upload ascii and upload binary.

Easton 04-27-2003 11:59 AM

thank you


All times are GMT -4. The time now is 06:24 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
2013 - xnations.com