Go Back   Garayed.com > Apache Configurations
Reply
 
LinkBack Thread Tools Search this Thread Display Modes

htaccess rule help
  #1 (permalink)  
Old 12-17-2007, 06:32 PM
Byru
 
Posts: n/a
Default htaccess rule help

Hi,

I have got the following htaccess rule:

-----------------------------------------
RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . sts/index.php [L,NS]

AddDefaultCharset UTF-8
----------------------------------------

My website uses links like this:

http://webaddr/sts/section/page/

The /section/ part is simply a html document named section.html.
Ii is supposed to be called only by http://webaddr/sts/section/* and not
directly.

The php script controls the links and includes specific files if they exist
e.t.c.
I would like to block all possibilities of accessing files directly so for
instance the call like this:
http://webaddr/sts/section.html will redirect to http://webaddr/sts/section/
or to any other specified location like http://webaddr/sts/home/
I would also want to preserve the possibility of calling certain files
(specified in a list) normally - directly.

Can you help me with modifying my rule to allow this?
TiA
B.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 12:16 AM.


Powered by vBulletin® Version 3.5.8
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
| Home | FAQ | Members List | Calendar | Today's Posts | Search | New Posts |