Welcome Guest, Not a member yet? Register   Sign In
uploading codeigniter site into internet
#1

[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?
#2

[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?
#3

[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?
#4

[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




Theme © iAndrew 2016 - Forum software by © MyBB