2013-01-16 30 views
0

我想要的網址從.htaccess文件中沒有CodeIgniter的工作版本改爲2.1.1

http://www.mydomain.com/b2b/testarab

http://www.mydomain.com/b2b/index.php/business/show/testarab

我還設置

後重定向我的.htaccess文件是
RewriteEngine on 
php_value max_file_uploads 30 
RewriteBase /b2b 
RewriteCond %{REQUEST_URI} \s 
RewriteRule ^(home.*|buyers.*|sellers.*|companies.*|mall.*|category.*|product_details.*|contact_now.*|join.*|login.*|myprofile.*|dashboard.*|buy_sell_items.*|trade.*|media.*|myadvertise.*|mycontacts.*|myemail.*|myhotel.*|mymedia.*|payment.*|tradeshows.*|tradeshow_details.*|search_tradeshows.*|business.*)$ index.php/$1 [NC,L,QSA] 
RewriteRule ^([a-zA-Z0-9._-\s]+)$ index.php/business/show/$1 [NC,L,QSA] 

在該文件中的第一重寫規則正在.. 第二個是不工作..

回答

0

htaccess的

RewriteEngine On 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^(.*)$ index.php/$1 [L] 

設置變量空如下。

$config['index_page'] = ''; 

嘗試更換這些參數下面的變量( 'AUTO', 'PATH_INFO', 'QUERY_STRING', 'REQUEST_URI' 和 'ORIG_PATH_INFO')逐一

$config['uri_protocol'] = 'AUTO'; 
+0

嗨艾哈邁德·薩米。 .. 感謝現在工作好我把PATH_NFO ..請告訴我,它會影響其他網頁..在此先感謝.. – Raja

+0

它不應該影響任何網頁 –

相關問題