Ich brauche deine Hilfe Ich versuche, meine URL-Format zu ändern, aber ich kann nicht, dass ich immer Object Not Found
Fehler bekomme.So ändern Sie URL-Format mit htaccess
Echt URL lautet: http://localhost/website/page.php?pid=about
Ich mag diese URL wollen .htaccess mit http://localhost/website/about.php
Mein Code ist:
<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteCond %{HTTP_HOST} !^www\.
#RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php !-f
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(([a-zA-z0-9\_\-\+]+))\.html|([a-zA-z0-9\_\-]+)\.php$ page.php?pptype=$2&pppage=$3&id=$4 [QSA,NC,L]
</IfModule>
Mögliche Duplikat [? .htaccess saubere URLs, was ist der beste Weg, es zu tun] (http://stackoverflow.com/questions/12661287/ htaccess-clean-urls-whats-the-best-way-to-do-it) – Dez