Combining 2 .htaccess files

Alles, was PHP betrifft, kann hier besprochen werden.

Combining 2 .htaccess files

Postby oohrah » 29. May 2011 11:42

I am trying to combine these 2 .htaccess files. I am sure my problem has something to do with the order but it is beyond my scope. I have googles the issue and could not find an easy solution or really something that makes it click in my head. I can make one or the other work but just not together. Any help is greatly appriciated.
Code: Select all
Options +FollowSymLinks
RewriteEngine On

RewriteCond %{REQUEST_URI} .*/http-bind
RewriteRule (.*) /http-bind [L]

RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} !/ow_updates/index.php
RewriteCond %{REQUEST_URI} !/ow_updates/
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$  [NC]

RewriteRule (.*) index.php

Code: Select all
Options +ExecCGI
AddHandler php-cgi .php
Action php-cgi /cgi-bin/php.cgi

<FilesMatch "^php5?\.(ini|cgi)$">
Order Deny,Allow
Deny from All
Allow from env=REDIRECT_STATUS
Posts: 1
Joined: 29. May 2011 11:15

Return to PHP

Who is online

Users browsing this forum: No registered users and 3 guests