Jump to content

Mod Rewrite probleem


maesk

Recommended Posts

Ik ben bezig met een site en ik heb een probleem met mod rewrite.

Ik probeer om urls zoals deze:

http://www.domein.com/test/23/24

te sturen naar:

http://www.domein.com/test.php/23/24

Dit is gelukt!

Het is ook al gelukt om wanneer test een map is dit niet te doen.

maar wat ik nu nog zou willen is dat als test een map is dat de volgende link:

http://www.domein.com/test/test2/23/24

wordt gestuurd naar:

http:www.domein.com/test/test2.php/23/24

Dit lukt me totaal niet

 

Dit is wat ik tot nu toe in mijn .htaccess file heb staan.

 

#Options -Multiviews
RewriteEngine On
RewriteBase /

RewriteRule ^test - [L,NC]

# If there is no . before / rewrite to $1.php/$2
RewriteCond $1 !images|downloads
RewriteRule ^([^\./]+)/(.*) /$1.php/$2 [L]

Link to comment
https://forums.phpfreaks.com/topic/227246-mod-rewrite-probleem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.