2017-04-06 35 views
0

我AM使用此.htaccess代碼解決
未指定輸入文件Problum。新Url Problum在沒有指定輸入文件解決方案Codeigniter

<IfModule mod_rewrite.c> 
RewriteEngine on 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^(.*)$ index.php?/$1 [L,QSA] 
</IfModule> 

但添加「?」後,在此行
重寫規則^(。*)$的index.php?/ $ 1 [L,QSA]在這條線的問號

我的網址在我的最後一個服務器改變像http://www.vaibhavjain.in/?/Weaver 我的網址是http://www.vaibhavjain.in/Weaver

我如何刪除?從我的網址

因爲在谷歌網站管理員所有我的網址列表沒有「?」問號。

+0

你確定,你在Weaver文件夾中插入'''.htaccess'''文件嗎? – kishor10d

+0

Weaver是一個Php頁面不是文件夾。 –

+0

好的。請使用此代碼替換該行代碼'''RewriteRule ^(。*)$ ./index.php?$1 [L,QSA]''' – kishor10d

回答

0

This .htaccess代碼正在爲我工​​作。嘗試這個。

的DirectoryIndex index.php文件

Options +FollowSymLinks 
RewriteEngine on 

RewriteCond $1 !^(index\.php|(.*)\.swf|forums|images|css|downloads|jquery|js|robots\.txt|favicon\.ico) 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^(.*)$ ./index.php?$1 [L,QSA] 

上面所提供的代碼替換當前的代碼,並檢查吧。

相關問題