Welcome Guest, Not a member yet? Register   Sign In
routing issue, possibly .htaccess related
#1

[eluser]ToddyBoy[/eluser]
I'm having a tough time getting a site up and running. Here's the story...

I've uploaded the site using CI 2.1.0. The site has a temp "Site is being built" page set from the default controller in routes.php. Going to the root of the domain name and you get the temp page. All good. This is where the problem starts. Once I go to a sub page, /about, it redirects to /index.php.

I've tried many different iterations of .htaccess files. Here is my latest:

Code:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>

I know the about page exists and can be displayed if I change the default controller to the location of the about page, I view the about page at the root of the domain.

It might be host related. I have never used this host before. My client set everything up with the host and then contacted me to design his site. The host is Net Registry in Australia.

I have my other standard setting for CI sites as:
Code:
$config['index_page'] = "";
$config['uri_protocol'] = "REQUEST_URI";

Anyone have any ideas about what is going on?




Theme © iAndrew 2016 - Forum software by © MyBB