Welcome Guest, Not a member yet? Register   Sign In
.htaccess problem with CI and Wordpress
#1

[eluser]marcoslavorato[/eluser]
Hello all. I have a CI application running on my server root and a Wordpress blog on /blog folder. The application runs fine, but the Wordpress stay in conflict with my application. How can I add a exception for blog folder, to use your own .htaccess file?!

App .htaccess
Code:
Options -Indexes
Options +FollowSymLinks
DirectoryIndex index.php

RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [QSA,L]

AddDefaultCharset UTF-8

<FilesMatch "\.(gif|png|jpg|swf)$">
    ExpiresActive On
    ExpiresDefault "access plus 10 years"
</FilesMatch>

AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml application/xhtml+xml text/javascript text/css application/x-javascript
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html

FileETag none


Wordpress /blog folder .htaccess
Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

Thanks in advanced!
Marcos
#2

[eluser]codeninja[/eluser]
looking for a solution to this problem as well. Did you get it resolved?




Theme © iAndrew 2016 - Forum software by © MyBB