Welcome Guest, Not a member yet? Register   Sign In
new server - Url changes, content of page doesn't - htaccess
#1

[eluser]keld[/eluser]
Hi all,

I'm working on site for a friend, I was developing it on a server hosted by bluehost and now I tried to push it live on a server hosted by OVH, I see the home page fine but when I use the navigation, the url changes but the content of the page stays the same, anyone knows why? I'm 99% sure it's the htaccess, but what causes this?
My htaccess is very simple and works with bluehost:

Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]

I looked on google but couldnl't find anything, I used different htaccess that people posted on this forum but nothing works...
Please help,

Thank you
#2

[eluser]keld[/eluser]
Just for clarification, this is what I have in my config file:
For base url:
Code:
$root = "http://".$_SERVER['HTTP_HOST'];
$root .= str_replace(basename($_SERVER['SCRIPT_NAME']),"",$_SERVER['SCRIPT_NAME']);
$config['base_url']    = "$root";

and for uri_protocol I tried query string and request uri with no luck...
#3

[eluser]keld[/eluser]
Well I figured it out, had to set uri protocol to:
Code:
$config['uri_protocol'] = 'PATH_INFO';




Theme © iAndrew 2016 - Forum software by © MyBB