Lumio Posted June 28, 2008 Share Posted June 28, 2008 Hi! How can I use (.+?) but when that part is index, it shouldn't get recognized. I'm using that in a .htaccess file: RewriteRule ^(.+?).html[\/]{0,1}$ index.php?page=$1 How can I recognize if the first part is index? Quote Link to comment https://forums.phpfreaks.com/topic/112355-but-not-index/ Share on other sites More sharing options...
Lumio Posted June 28, 2008 Author Share Posted June 28, 2008 I did it by my own ^(?=index)|(.+?)\.html$ That works great Quote Link to comment https://forums.phpfreaks.com/topic/112355-but-not-index/#findComment-576919 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.