簡體   English   中英

.htaccess 文件不適用於 hostgator

[英].htaccess file is not working with hostgator

我已將我的 CRM 應用程序(開發的 PHP)從 hostgator VPS 遷移到托管商,我的應用程序文件夾結構是 crm\leadstracer1.1{other php files}。 我在 crm 文件夾中保留了一個 .htaccess 文件,以避免 URL 上的“.php”擴展名,該文件在 hostgator 上運行良好。 But after migrating hostinger its not getting work, I am using CentOs server, I tried instructions from following links Linux CentOS 7 - Configuration of httpd.conf file through .htaccess Codeigniter URL rewriting .htaccess is not working on CentOS But nothing get work out. 請查看 my.htacess 文件的內容。

RewriteEngine On
RewriteRule ^$ leadstracer1.1/views/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ leadstracer1.1/views/$1.php

如果有人幫我重新注冊,那就太好了謝謝

您是否正確配置了 httpd.conf 或 virtualhost conf 文件以允許使用 htacces 文件?

通常你必須改變它才能使它工作。

應該有一個名為AllowOverride none的指令,例如必須配置為All

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM