Welcome to MobyThreads.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

replace "filesMatch->forcetype" using Rewrite..

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Related Topics:
forcetype + filesmatch in htaccess - I have write a script based on a htaccess file: Here it is: <font ForceType But the server don't care about it. An idea?

Regex for <Files> and <FilesMatch> - I'd like to all documents in the site except one (the page). I believe in Perl it'd be like this (I haven't tested though): However, I can't find info on the specific syntax that Apache expects. Any idea?..

ForceType directive and Apache config - Hello, I have two 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

[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 support, I let it only listen to localhost and then use 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 of However, I cannot find any function to do this. E.g. replace all in by and the result should become..
Next:  Apache: mapping two files in same directory using Alias directive  
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:   
   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 ]