CodeIgniter Forums
CI or Apache - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: CI or Apache (/showthread.php?tid=6285)



CI or Apache - El Forum - 02-21-2008

[eluser]nirbhab[/eluser]
hello everybody,

i facing a problem:
browse both the urls you will get to know the error, site is under construction.

http://www.findxl.com/findxl

http://www.findxl.com/findxl/

difference is of '/'
here is my .htaccess content.
Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|user_guide|img|css|style|upload|js|xajax|ajax|javascript|jquery|images|image|system|robots\.txt)
RewriteRule ^(.*)$ /findxl/index.php/$1 [L]

Date of my coding is on my head, so please, i need help.........
waiting desperately....


CI or Apache - El Forum - 02-21-2008

[eluser]Phil Sturgeon[/eluser]
Use a better .htaccess:

Quote:<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /findxl/
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>

Failing that use the more simple part of it:

[quote]RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /findxl/index.php/$1 [L][/code]

OR just take it out of the sub-folder.
OR just take it out of the sub-domain. Other than h