404 not found page not working with my .htaccess

后端 未结 5 2200
面向向阳花
面向向阳花 2021-02-10 16:25

I have below .htaccess on the server with the not found page rules but it doesn\'t seems to work. Any idea?

RewriteEngine on
RewriteRule ^article_detail/([a-zA-Z         


        
5条回答
  •  爱一瞬间的悲伤
    2021-02-10 17:16

    Try to change the line by ErrorDocument 404 http://www.google.com

    If that works, that mean that the path you are using was misconfigure. I don't know your directory structure so I can give you the good code to write.

    I don't think it's an .htaccess error because you'll get a 500 Internal error if it is.

    If this tricks does not work, that means something redirecting inside your apache configuration.

提交回复
热议问题