Help with subdomain on live server

#1
[eluser]Cgull[/eluser]
Hello,

I developed a site and put it in a subdomain on my live server.

Until a few days ago everything worked fine, today, suddenly out of the blue, I get this error:


The requested URL could not be retrieved

Can't access the server at http://test.highlandcoffeeroastery.co.za/

I can access the site if I go to: www.highlandcoffeeroastery.co.za/test

I wrote the host but they say they can access the site from their side and they are still trying to help, but I thought maybe someone here can see the problem?

My folder structure is:

public_html/test
public_html/test/alll the codeigniter files and folders.

My htaccess:
Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond $1 !^(index\.php|assets|images|robots\.txt|captcha)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
AddCharset UTF-8 .html .php
Options -Indexes
<FilesMatch "\.(htm|html|php)$">
    <IfModule mod_headers.c>
        BrowserMatch MSIE ie
        Header set X-UA-Compatible "IE=Edge,chrome=1" env=ie
    </IfModule>
</FilesMatch>
</IfModule>

In the config.file:
Code:
$config['uri_protocol'] = 'AUTO';

Anything I'm doing wrong?

Although, can't understand why we could access it a few days ago but not today.

Thank you.

#2
[eluser]whatisnewone[/eluser]
look like eveything is ok. http status is 200

Code:
Request URL:http://test.highlandcoffeeroastery.co.za/
Request Method:GET
Status Code:200 OK
Request Headersview source
Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-US,zh-CN;q=0.8,zh;q=0.6
Cache-Control:no-cache
Connection:keep-alive
Cookie:csrf_cookie_name=1906580bdd5ab548cce0c2f7a1873138; ci_session=a:5:{s:10:"session_id";s:32:"ced7b8aa6a1a7c54d4d2cb7c42e9d4ca";s:10:"ip_address";s:14:"127.0.0.11111";s:10:"user_agent";s:120:"Mozilla/5.0+(Macintosh;+Intel+Mac+OS+X+10_9_0)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/30.0.1599.101+Safari/537.36";s:13:"last_activity";i:1384602147;s:9:"user_data";s:0:"";}6b9e2401a261e87f299fe2c5f83570dc
Host:test.highlandcoffeeroastery.co.za
Pragma:no-cache
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.101 Safari/537.36
Response Headersview source
Connection:close
Content-Encoding:gzip
Content-Type:text/html
Date:Sat, 16 Nov 2013 11:42:57 GMT
Server:LiteSpeed
Set-Cookie:csrf_cookie_name=1906580bdd5ab548cce0c2f7a1873138; expires=Sat, 16-Nov-2013 13:42:57 GMT; path=/
Transfer-Encoding:chunked
Vary:Accept-Encoding
X-Powered-By:PHP/5.3.26
X-UA-Compatible:IE=Edge,chrome=1

#3
[eluser]Cgull[/eluser]
Thanks, just checked, works suddnely, maybe the host did something. Strange, thank you again for taking the time to look.

#4
[eluser]Cgull[/eluser]
Ok, have a different problem now, if I go to:
test.highlandcoffeeroastery.co.za/admin it redirects to www.test.hi....
And then again I get:

The requested URL could not be retrieved

Can't access the server at http://www.test.highlandcoffeeroastery.co.za/admin

How can I make it not add the www to the url?

Can you please help?

#5
[eluser]Cgull[/eluser]
And then again, after testing something, going to test.highlandcoffeeroastery.co.za getting the error:


The requested URL could not be retrieved

Can't access the server at http://test.highlandcoffeeroastery.co.za/

#6
[eluser]Cgull[/eluser]
It looks like this:
Code:
$config['uri_protocol'] = 'REQUEST_URI';
solved all the problems.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.