The Little Guy Posted January 9, 2010 Share Posted January 9, 2010 I am trying to make a mod_rewrite like php.net, where you type in: http://mysite.com/function and it will take you to the documentation for that function. Currently I have this: Options +FollowSymlinks RewriteEngine on RewriteBase / RewriteRule (.*)$ docs.php?title=$1 [NC] It doesn't work 100% right now, if I echo out title: echo $_GET['title']; It echo's out docs.php I don't know why... Anyone help me? Link to comment https://forums.phpfreaks.com/topic/187801-phpnet-like-mod-rewrite/ Share on other sites More sharing options...
The Little Guy Posted January 9, 2010 Author Share Posted January 9, 2010 Got it! RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ docs.php?title=$1 Link to comment https://forums.phpfreaks.com/topic/187801-phpnet-like-mod-rewrite/#findComment-991587 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.