Welcome Guest, Not a member yet? Register   Sign In
subdomain failure with CI
#11

[eluser]ericsodt[/eluser]
[quote author="TheFuzzy0ne" date="1246136536"]I'm not so sure about this line:
Code:
RewriteCond %{REQUEST_URI} ^system.*

The line that follows should direct everything to your index.php file anyway, so I can't see it helping at all. You'll no doubt need a line in there to allow you to access css, script and image directories (if you need to).

There may also be a potential problem with the Dollar sign on the last line. I'd suggest removing it, since it's not really necessary. Here is an excerpt from my htaccess file, in case it helps. If you want to know what any of it does, please let me know. I'm not an htaccess expert, but I try to make it a thing to know what's going on in my Web directory.

Code:
<IfModule mod_rewrite.c>
        RewriteEngine On

        RewriteCond %{REQUEST_URI} ^/(system)
        RewriteRule ^(.*) /index.php/$1 [L]

        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>

It's essentially a modified version of what can be found on the [url="http://codeigniter.com/wiki/Dreamhost_.htaccess/"]wiki[/url].

This will check if the incoming request is for the system directory. If it is, the request is internally directed to the index.php file.

Next, a check is made to see if the file/directory exists. If it does, it's served up, otherwise it's internally redirected to the index.php.

I've noticed that on my production server, this doesn't work unless I change these lines:
Code:
RewriteRule ^(.*) /index.php/$1 [L]

to this:
Code:
RewriteRule ^(.*) /index.php?/$1 [L] # Note, the question mark.

Hope this helps.[/quote]

Thank you so much... I'll give it a shot when I get back into town
#12

[eluser]ericsodt[/eluser]
[quote author="ericsodt" date="1246215366"][quote author="TheFuzzy0ne" date="1246136536"]I'm not so sure about this line:
Code:
RewriteCond %{REQUEST_URI} ^system.*

The line that follows should direct everything to your index.php file anyway, so I can't see it helping at all. You'll no doubt need a line in there to allow you to access css, script and image directories (if you need to).

There may also be a potential problem with the Dollar sign on the last line. I'd suggest removing it, since it's not really necessary. Here is an excerpt from my htaccess file, in case it helps. If you want to know what any of it does, please let me know. I'm not an htaccess expert, but I try to make it a thing to know what's going on in my Web directory.

Code:
<IfModule mod_rewrite.c>
        RewriteEngine On

        RewriteCond %{REQUEST_URI} ^/(system)
        RewriteRule ^(.*) /index.php/$1 [L]

        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>

It's essentially a modified version of what can be found on the [url="http://codeigniter.com/wiki/Dreamhost_.htaccess/"]wiki[/url].

This will check if the incoming request is for the system directory. If it is, the request is internally directed to the index.php file.

Next, a check is made to see if the file/directory exists. If it does, it's served up, otherwise it's internally redirected to the index.php.

I've noticed that on my production server, this doesn't work unless I change these lines:
Code:
RewriteRule ^(.*) /index.php/$1 [L]

to this:
Code:
RewriteRule ^(.*) /index.php?/$1 [L] # Note, the question mark.

Hope this helps.[/quote]

Thank you so much... I'll give it a shot when I get back into town[/quote]

Worked! Thank you for your help




Theme © iAndrew 2016 - Forum software by © MyBB