Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] htaccess subdomain
#11

[eluser]Daniel Moore[/eluser]
To test if .htaccess is being read by the system, set up an .htaccess file with the following:

Code:
# htaccess test.  If .htaccess executes, you should get a Internal Server 500 error.
AARG!

Did you use any of the info in the link I provided? It could be a simple matter of needing to add the "?" at the appropriate place, or another issue that is covered in my write-up.
#12

[eluser]yannyannyann[/eluser]
thanks for your precious help.
It appeared to eb a server side configuration problem.

And thanks Daniel, I learned some nice stuff on your page, essentially the thing of putting a "standby page" when you upgrade. Really cool.
#13

[eluser]petebouch[/eluser]
Hi Daniel,
I'm having some trouble with this too.

I've followed your tutorial and played around with the different options trying to see what works. For a while I could see my homepage only at mydomain.co.uk/dev/ but none ove the other controllers to functions I invoked would work only 404 errors.

Then I did something and started getting 500 errors for every page even the homepage and this in my logfile:
Quote:[Fri Mar 04 12:40:06 2011] [error] [client <my_IP>] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.

/dev/application/config/config.php:
Code:
$config['index_page'] = "";
$config['uri_protocol']    = "ORIG_PATH_INFO";
I've tried all the URI PROTOCOL options

/dev/.htaccess (only uncommented lines):
Code:
Options -Indexes

Options +FollowSymLinks

Options -MultiViews

DirectoryIndex index.php

<IfModule mod_rewrite.c>
  RewriteEngine on

  RewriteBase /dev/

  RewriteCond $1 !^(index\.php|public|images|css|js|robots\.txt|favicon\.ico)

  RewriteRule ^(.*)$ dev/index.php/$1 [NC,L,QSA]
  # Tried both versions:
  #RewriteRule ^(.*)$ dev/index.php?/$1 [NC,L,QSA]

</IfModule>

<IfModule !mod_rewrite.c>
  ErrorDocument 404 index.php
</IfModule>

Any ideas you have would be much appreciated.

Pete.
#14

[eluser]OnurTEZ[/eluser]
tenx




Theme © iAndrew 2016 - Forum software by © MyBB