htaccess 顯示內部服務器錯誤 (htaccess show internal server error)


問題描述

htaccess 顯示內部服務器錯誤 (htaccess show internal server error)

i have facing some problem in htaccess i can't understand what the issue is that .. i would like to make SEO friendly URLs but when i write RewriteEngine on given error show on website 

  

Internal Server Error

     

The server encountered an internal error or misconfiguration and was unable to complete your request.

     

Please contact the server administrator at admin@localhost to inform them of the time this error occurred, and the actions you performed just before this error.

     

More information about this error may be available in the server error log.

my website folder are. ‑ includes ‑ logs ‑ public

and .htaccess file available on main. and index.php available in public folder . and htaccess file i was put in public folder same error show. In Include folder all class has been defined. In public folder all publicily available pages

htaccess File Code is :

RewriteEngine on

參考解法

方法 1:

Your server doesn't have the rewrite module loaded.  You'll need to make sure this is installed and that your server is configured to load it.  How you do this depends on which operating system you use.

If you are using a hosting provider rather than your own server, it is likely you don't have the access necessary to do this, in this case, contact support and ask them about it.

(by Navaid Zafar AnsariJim)

參考文件

  1. htaccess show internal server error (CC BY‑SA 3.0/4.0)

#.htaccess #SEO






相關問題

使用 htaccess 從基本 URL 中刪除變量 (Remove variable from base URL with htaccess)

多個相同的 url htaccess 重定向 (Multiple same url htaccess redirect)

使用 mod_rewrite 更改 URL 中的單詞的問題 (Issue changing a word in a URL using mod_rewrite)

無法在 XAMPP 中進行 301.htaccess 重定向 (Cannot 301.htaccess redirect in XAMPP)

Cách ẩn mọi thứ sau tên trang web của bạn bằng .htaccess (How to hide everything after your webpage name with .htaccess)

htaccess 顯示內部服務器錯誤 (htaccess show internal server error)

mod-rewrite 結合了兩種不同的重寫規則 (mod-rewrite combine two different rewrite rules)

安全的 PHP 文件上傳 (Secure PHP file uploading)

用 .htaccess 重寫基於日期的 URL:s - 解決方案? (Rewriting date-based URL:s with .htaccess - solution?)

htaccess 強制 https 和 www 到非 www,但子域僅 https (htaccess force https & www to non-www, but subdomain only https)

重定向太多。設置 htaccess 以重定向 (too many redirects. setting up htaccess to redirect)

.htaccess https、www 和子域靜默重寫 (.htaccess https, www and subdomain silent rewrite)







留言討論