1.خیلی از نرم افزار دریمویور بعیده که برای هر پروژه testing server و remote server داشته باشه ولی اینو درنظر نگرفته باشه که کانفیگ هریک برا اتصال به دیتابیس باید متفاوت باشه !!!
2.جالبه توی لوکال به هر نحوی بود مشکل ران شدنش رو برطرف کردم اما بعد از لاگین لوکال هاست رو نشون میده در حالی که در ریموت سرور بدون هیچ مشکلی کار می کنه !!!
3.در ساختار کلی مشکلی نیست ...نمونه هایی که خواستید رو گذاشتم ،هرچند دقیقاً نمیدونم توی فایل های view دنبال چی می گردید ....
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
## Canonicalize codeigniter URLs
RewriteRule ^(default_controller(/index)?|index(\.php)?)/?$ / [L,R=301]
RewriteRule ^(.*)/index/?$ $1 [L,R=301]
# Removes trailing slashes (prevents SEO duplicate content issues)
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)/$ $1 [L,R=301]
# Enforce www
# If you have subdomains, you can add them to the list using the "|" (OR) regex operator
#RewriteCond %{HTTP_HOST} !^(www|sub1|sub2|sub3|beta|ikariam) [NC]
#RewriteRule ^(.*)$ http://localhost/$1 [L,R=301]
# Enforce NO www
#RewriteCond %{HTTP_HOST} ^www [NC]
#RewriteRule ^(.*)$ http://localhost/$1 [L,R=301]
# 'system' can be replaced if you have renamed your system folder.
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php/$1 [L]
# Checks to see if the user is attempting to access a valid file, such as an image or css document, if this isn't true it sends the request to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
# Without mod_rewrite, route 404's to the front controller
ErrorDocument 404 /index.php
</IfModule>
<div id="mainview">
<h1><?=$this->lang->line('leave_colony')?></h1>
<p><?=$this->lang->line('leave_colony_text')?></p>
<? if($this->Player_Model->town_id != $this->Player_Model->capital_id){?>
<form action="<?=$this->config->item('base_url')?>actions/abolishColony/" method="POST">
<div class="centerButton">
<input type="submit" class="button" value="<?=$this->lang->line('leave_colony')?>">
</div>
</form>
<? }else{?>
<div class="centerButton">
<input type="submit" class="button" value="<?=$this->lang->line('no_leave_capital')?>">
</div>
<? }?>
</div>