htaccess Elite

.htaccess tutorial


All times are UTC [ DST ]





Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Giving access to only one file
PostPosted: 18 Jun 2008 05:49 
Offline

Joined: 18 Jun 2008 05:41
Posts: 1
Hi,

I have a CMS software installed on my website and in the .htaccess file, there's a line

Code:
RewriteRule ^(.*)(\.html|\.htm)$ index.php [L]


and this prevents all other .html files from showing. Anytime I try to access a .html file, I get a 404 error. If I remove the "\.html" from the code, then the .html files show but the whole CMS application links stop working. I want to give access to just one file - javascripttest.html. Is it possible to just let that one particular file function? There is no file with the same name in any other subdirectories.

Thanks! :)


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google [Bot], MSNbot Media and 6 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:
Powered by phpBB