Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 24. Nov 2024, 21:44

This forum is readonly now. Please use the new forum if you don't find the answer to your question here. The new forum is at https://www.tinywebgallery.com/blog/forum/


All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: htaccess
PostPosted: 26. Jan 2009, 19:57 
Offline

Joined: 26. Jan 2009, 13:31
Posts: 13
I cant open the .htaccess template file downloaded with the software. My chmod settings seem to have to be 777 in order for everything to work.

could someone advise me what software I need to create my own .htaccess files and which directories I need to put them in. many thanks.


Top
 Profile  
 
 Post subject:
PostPosted: 27. Jan 2009, 00:29 
Offline

Joined: 26. Jan 2009, 13:31
Posts: 13
OK, so Ive worked out that .htaccess is just a .txt file with the txt removed.

this is the template that I found elsewhere in the download pack:

-- start
<Files .htaccess>
order allow,deny
deny from all
</Files>

IndexIgnore */*
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www.)?domain.com/.*$ [NC]
RewriteRule .(gif|jpg|txt|xml|png)$ - [F]
-- end

My question is twofold:

(1) if my domain name is abc.co.uk, is the format of the rewriteCond line like this:

RewriteCond %{HTTP_REFERER} !^http://(www.)?abc.co.uk/.*$ [NC]

(2) which folders should I place copies of .htaccess in?

Many thanks


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 35 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
powered by phpbb | Datenschutz/ Privacy policy