Mais ça ne marche pas!Options +FollowSymlinks
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^site\.com$ [NC]
RewriteRule ^(.*) http://www.site.com/$1 [QSA,L,R=301]
# Site
Rewriterule ^site.php?idsite=(.+)$ $1-$2.php [L]
Rewriterule ^(.+).php$ /site.php?idsite=$1 [L]
<a href="site.php?nom=exemple">Exemple</a>
<a href="exemple.php">Exemple</a>
ErrorDocument 404 http://www.monsite.com/404.php
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^monsite\.com$ [NC]
RewriteRule ^(.*) http://www.monsite.com/$1 [QSA,L,R=301]
RewriteRule ^(.+).php$ /site.php?idsite=$1 [L]
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
--------------------------------------------------------------------------------
Apache/1.3.37 Server at www..com Port 80
➡️ Offre MyRankingMetrics ⬅️
pré-audit SEO gratuit avec RM Tech (+ avis d'expert)
coaching offert aux clients (avec Olivier Duffez ou Fabien Faceries)
Voir les détails ici