I am linking some stories on FaceBook, but the url I have is:
http://webpage.com/single.php?2011/02/04/开发者_运维百科my-story-here.html
FaceBook linking doesn't like the ".php?"
Can I do something with my .htaccess page to make it like:
http://webpage.com/single.php/2011/02/04/my-story-here.html
???
Thanks in advance.
By the way, when you click the link in facebook it goes to this link:
http://webpage.com/single.php?2011%2F02%2F04%2Fmy-story-here.html
and doesn't show my full story :-(
If you have AcceptPathInfo
activated in Apache, you can indeed do
http://webpage.com/single.php/2011/02/04/my-story-here.html
and fetch the part after the .php
from the $_SERVER["PATH_INFO"]
variable.
精彩评论