我剛剛買了一臺Mac-PRO與小牛10.9.1網址中的index.php在此之前,我是工作在PC與Windows 7無法從Mac OSX上使用笨
我在windows下創建的項目7操作系統,現在我想將其導入到OSX,除了.htaccess文件之外,導入成功。我無法從我的網址中刪除index.php
。 我已經安裝了甲基苯丙胺,如果我用index.php
我的網址只工作:
- 不起作用:
(localhost/~username/feel/products)
- 工作:
(localhost/~username/feel/index.php/products)
我試過RewriteEngine敘述,和的RewriteCond重寫規則的所有選項在.htaccess文件中。 我給所有的文件夾/文件chmod 755,已經把$config['base_url']=''
和$config['index_page'] = '';
有和沒有根或index.php頁面。
文件.htaccess位於index.php頁面的相同文件夾中,AllowOverride無是AllowOverride All。
這爲我做!還根據@stomdrain修改了httpd.conf。謝謝! – AshBrad