Welcome Guest, Not a member yet? Register   Sign In
How can i make Codeigniter allowing subfolders subfolders?
#1

[eluser]Lacsap[/eluser]
Hello,

I have installed CI in root and Wordpress in root/blog.

But I cant open mysite.de/blog without getting a 404 error.

How can i unprotect the blog folder and its subfolders with .htaccess?

My .htaccess on root:
Quote:<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.mysite\.de$
RewriteRule ^(.*)$ http://www.mysite.de/$1 [L,R=301]
RewriteRule ^home$ / [R=301,L]

#Removes access to the system folder by users.
#Additionally this will allow you to create a System.php controller,
#previously this would not have been possible.
#'system' can be replaced if you have renamed your system folder.
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php?/$1 [L]

#Checks to see if the user is attempting to access a valid file,
#such as an image or css document, if this isn't true it sends the
#request to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]

</IfModule>

<IfModule !mod_rewrite.c>
# If we don't have mod_rewrite installed, all 404's
# can be sent to index.php, and everything works as normal.
# Submitted by: ElliotHaughin

ErrorDocument 404 /index.php
</IfModule>

I have to say that i dont know what my htaccess file is doing Smile It worked till now.

I googled and tried to add
Code:
RewriteCond $1 !^(index\.php|blog)
but it didnt help me.

Thanks.


Messages In This Thread
How can i make Codeigniter allowing subfolders subfolders? - by El Forum - 04-18-2011, 01:29 PM



Theme © iAndrew 2016 - Forum software by © MyBB