1

I have a website and I tried to rewrite links using htaccess file but the rewrited link does not work. The original link is like this :

http://my-website.com/open?cours=3em-tricks

I want to rewrite it to this form:

http://my-website.com/tuto/cours/3em-tricks/

In the .htaccess file I write this code:

RewriteEngine On
RewriteBase /
RewriteRule ^tuto/cours/(.*)$ open?cours=$1 [N]

But I always get the 404 page in rewrited link. Note the the htaccess module is activate on server.

Ayoub Mstr
  • 11
  • 3

1 Answers1

0

Maybe it's the trailing slash and the N.

RewriteEngine On
RewriteBase /
RewriteRule ^tuto/cours/(.*)/?$ open?cours=$1 [L]
Shiva127
  • 2,413
  • 1
  • 23
  • 27