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

[eluser]elombashy[/eluser]
hiii
I have this wierd problem.
my site works fine on localhost.
on the internet, it works good on the main page: "saeed-lib.info",
but when i move into another page "saeed-lib.info/main/productPage/80" that shoul show information about some product, it still shows the main page: "saeed-lib.info" !!

any advises please?

El Forum

[eluser]SPeed_FANat1c[/eluser]
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

[eluser]elombashy[/eluser]
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

[eluser]elombashy[/eluser]
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