开发者

URL full story not linking correctly need htaccess help?

开发者 https://www.devze.com 2023-02-09 03:12 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消