Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/231.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby-on-rails-4/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php CodeIgniter-在One.com托管服务上重写Mod__Php_.htaccess_Codeigniter_Mod Rewrite - Fatal编程技术网

Php CodeIgniter-在One.com托管服务上重写Mod_

Php CodeIgniter-在One.com托管服务上重写Mod_,php,.htaccess,codeigniter,mod-rewrite,Php,.htaccess,Codeigniter,Mod Rewrite,我真的开始后悔在One.com买域名了 我有一个简单的CI项目,可以在localhost上完美运行,但one.com不是我的朋友。我似乎无法让mod_重写正常工作。我甚至懒得联系支持人员,因为我觉得任何人需要的不仅仅是一个索引页都不受欢迎 这是我的.htaccess文件 <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /luc/ #Removes access to the system folder by users.

我真的开始后悔在One.com买域名了

我有一个简单的CI项目,可以在localhost上完美运行,但one.com不是我的朋友。我似乎无法让mod_重写正常工作。我甚至懒得联系支持人员,因为我觉得任何人需要的不仅仅是一个索引页都不受欢迎

这是我的.htaccess文件

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /luc/

#Removes access to the system folder by users.
#Additionally this will allow you to create a System.php controller,
#previously this would not have been possible.
#‘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
#This last condition enables access to the images and css folders, and the robots.txt file
#Submitted by Michael Radlmaier (mradlmaier)
RewriteCond $1 !^(index\.php|img|js|UberGallery|robots\.txt|css)
RewriteRule ^(.*)$ index.php?$1 [L]
</IfModule>

<IfModule !mod_rewrite.c>
# If we don’t have mod_rewrite installed, all 404’s
# can be sent to index.php, and everything works as normal.
# Submitted by: ElliotHaughin

ErrorDocument 404 /index.php
</IfModule>
luc是我的域的子域,因此在.htaccess中使用RewriteBase。 在我的所有子文件夹中,我都有一个.htaccess文件,其中包含deny from all。 这似乎是one.com特有的问题,所以我希望有人有足够的经验来发现我的设置中的错误


我做错了什么?

当你访问你的网站时会得到什么?一个500错误,一个404,什么都没有…还有,你怎么访问你的网站?使用luc.mywebsite.com?这是您完整的.htaccess文件还是您没有向我们展示的部分?我得到一个404页面。500页就是一个循环,对吗?我之前已经修复了,但是没有用。完整的域名是v-art.be/luc。顺便说一下,我已经发布了我的整个.htaccess文件
$config['base_url'] = '';//I have tried the full URI.
$config['index_page'] = ''; 
$config['uri_protocol'] = 'AUTO'; //I have tried REQUEST_URI as well.