Hi,
I trying to do something in using the mod_rewrite.
So, my first test was to create a page "trouve.html" and put a .htaccess
file with
"
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^nexistepas.html$ trouve.html [L]
"
When i try to acces to nexistepas.html, i got the trouve.html page. It's
work fine.
My second test was to create a page article.php with the code :
"
<?php echo $numero."<br>".$page ?>
"
and put a .htaccess file with the code :
"
RewriteEngine on
RewriteRule ^article-([0-9]+)-([0-9]+)\.html$ article.php?numero=$1&page=$2
[L]
"
The goal was to access to article.php?numero=45&page=36
with article-45-36.html
But it doesn't work on my server, i have an error when i try to access to
the page :
"You don't have permission to access /article-45-36.html on this server."
And the same error to access to article.php?numero=45&page=36
"You don't have permission to access /article.php on this server."
And for the root too :
"You don't have permission to access / on this server."
If i remove the .htaccess file, i can access to the site.
Somebody has an idea ?
Thanks.
>> Stay informed about: Issue with url rewriting