H
H
hdtor2016-02-16 12:11:14
PHP
hdtor, 2016-02-16 12:11:14

How to fix RewriteRule to work?

I do on the CNC site.
Added to .htaccess:

RewriteEngine On

RewriteRule ^news/ news_list.php

When I go to the site:
site.com/news/ - works
site.com/news - doesn't work (there is no slash at the end here).
How to fix?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
IceJOKER, 2016-02-16
@IceJOKER

Well, remove the slash from the RewriteRule as well, isn't it obvious?

D
Defman21, 2016-02-16
@Defman21

RewriteRule ^news/? news_list.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question