Hallo!
Ich möchte meine URLs entsprechend bearbeiten:
Ich hab z.B. folgende URLs:
include.php?path=start.php
include.php?path=content&contentid=345
include.php?path=forum&threadid=789
Darauf möchte ich jetzt das machen:
start.php
content/345
forum/789
Wenn möglich auch noch das .php immer entfernen, soweit das möglich ist.
Meine bisherige .htaccess sieht momentan so aus:
Es funktioniert einfach nicht. Was mache ich falsch?
Ich möchte meine URLs entsprechend bearbeiten:
Ich hab z.B. folgende URLs:
include.php?path=start.php
include.php?path=content&contentid=345
include.php?path=forum&threadid=789
Darauf möchte ich jetzt das machen:
start.php
content/345
forum/789
Wenn möglich auch noch das .php immer entfernen, soweit das möglich ist.
Meine bisherige .htaccess sieht momentan so aus:
Code:
RewriteEngine On
RewriteBase /
RewriteRule ^([^/\.]*)/$ include.php?path=$1
RewriteRule ^([^/\.]*)/([^/\.]*)$ include.php?path=$1&type=$2
RewriteRule ^([^/\.]*)/([^/\.]*)$ include.php?path=$1&contentid=$2
RewriteRule ^([^/\.]*)/([^/\.]*)$ include.php?path=$1&threadid=$2
Es funktioniert einfach nicht. Was mache ich falsch?