![]() |
.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... |
You wanna upload it to your root directory......in ASCII mode :)
|
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: |
it could very well be that my code is flawed... i know shit about .htaccess
hmmm.... i think i should give up |
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* |
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. |
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 |
Quote:
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. |
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