简体   繁体   English

500服务器错误重新写入htaccess

[英]500 Server Error ReWrite htaccess

Options +FollowSymLinks
RewriteEngine on
RewriteRule home$/project1/index.php

Is there something missing in this code? 这段代码中缺少什么吗? i tried to rewrite my url but it giving me 500 error 我试图重写我的网址,但它给了我500错误

This is because of wrong syntax in this rule: 这是因为此规则中的语法错误:

RewriteRule home$/project1/index.php

Right syntax is: 正确的语法是:

RewriteRule matching-pattern target-uri [flags]?

Reference: Apache mod_rewrite Introduction 参考: Apache mod_rewrite简介

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM