CodeIgniter Forums

Full Version: uploading codeigniter site into internet
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

I have this wierd problem.
my site works fine on localhost.
on the internet, it works good on the main page: "",
but when i move into another page "" that shoul show information about some product, it still shows the main page: "" !!

any advises please?

El Forum

something with url I guess, check .htaccess if you use it, is rewrite base ok? did you change base_url in a config file?

El Forum

this is my .htaccess file:

RewriteEngine On
# RewriteBase /

#if the first parameter after current directory is:
# index.php
# robots.txt
# style (folder)
# treat it as normal file instead of rewrite it

RewriteCond $1 !^(index\.php|robots\.txt|media|admin)
RewriteRule ^(.*)$ index.php/$1 [L]

and the base url is:
"http" . ((!empty($_SERVER['HTTPS'])) ? "s" : "") . "://".$_SERVER['SERVER_NAME'].substr($_SERVER['SCRIPT_NAME'], 0, strrpos($_SERVER['SCRIPT_NAME'], '/')+1);

and to remind u, this works on my localhost and the rewrite mode is on.
isn't that enought?

El Forum

Thank you.. there was a problem in my htaccess file.
I copied a new one from this site, and that worked just great. thanx alot