Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

replace "filesMatch->forcetype" using Rewrite..

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  IIS6.0 has new idc/htx syntax?  
Author Message
stenderdk

External


Since: Jan 10, 2005
Posts: 4



(Msg. 1) Posted: Wed Jan 19, 2005 1:37 am
Post subject: replace "filesMatch->forcetype" using RewriteCond
Archived from groups: alt>apache>configuration (more info?)

Hi all

I have this setup on my own server:

1. in httpd.conf:
<Directory "/absolut/path/to/docroot">
AllowOverride All
</Directory>

2. and in the .htaccess in that dir:

DirectoryIndex en

<FilesMatch "^en|de/?$">
ForceType application/x-httpd-php
</FilesMatch>

AcceptPathInfo On // <- don't know if this is neccesary

So the server sets the defaultfile to 'en', which is forced to be
interpreted as a php-file.

Anyway, most hostingplans don't have AllowOverride set to all (if
anything), so this won't work.

They often have the Rewrite engine activated though, so the question
is:

Can I get the same results with RewriteCond, and - eh - how?
Big thanks in advance
Martin

 >> Stay informed about: replace &quot;filesMatch-&gt;forcetype&quot; using Rewrite.. 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
forcetype + filesmatch in htaccess - I have write a script based on a htaccess file: Here it is: <FilesMatch "directory"> <font color=purple> ; ForceType application/x-httpd-php</font> </FilesMatch> But the server don't care about it. An idea?

Regex for <Files> and <FilesMatch> - I'd like to password-protect all documents in the site except one (the "comming soon" page). I believe in Perl it'd be like this (I haven't tested though): !~/^index\.html/ However, I can't find info on the specific syntax that Apache expects...

ForceType directive and Apache config - Hello, I have two experimental accounts that I use to play with different web stuff on a cheapie shared hosting service, two different domains. I'm guessing that the two domains are on two different servers because one server supports the htaccess..

[apache2} ProxyPass/ProxyPassReverse + FilesMatch problem - Hi I am using a python script to access a bunch of music files (edna), this uses python's BaseHTTP stuff to serve pages. As this script has very poort authentication/ACL support, I let it only listen to localhost and then use apache-2.0.50 on the same....

mod_rewrite: replace all occurance of a character - Hi, I would like to replace all occurance of a character by another character in mod_rewrite of .htaccess. However, I cannot find any function to do this. E.g. replace all "-" in "http://www.a-f.com/de-fg/d-f" by "_" and t...
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]