Jump to content

php.net Like Mod Rewrite


The Little Guy

Recommended Posts

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

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.