Research on Weibo platform statusnet (3): support for friendly URLs and openids

Source: Internet
Author: User
Tags openid
Statusnet Research SeriesStatusnet Research (1): Introduction of statusnet research (2): Basic installation of statusnet Research (3): friendly URL and openid support of statusnet Research (4): quick installation of statusnet Research (5 ): support for Jabber/Gtalk

 

Friendly URLFriendly URLs, also known as pretty URLs or fancy URLs, are designed to provide simple and beautiful URL addresses for the client to improve ease of use and search engine optimization. Here, Apache rewrite is used to achieve URL-friendly statusnet. 1. Set htaccess under the root directory of statusnet. rename the sample file to the configuration file (accessfilename) of Apache ). htaccess (in Windows, you cannot rename it directly. You need to rename it using a command at a command prompt ). 2. Edit again. htaccess: Modify rewritebase/mublog/according to the actual statusnet directory, such as rewritebase/or rewritebase/statusnet/3. Enable Apache to support configuration file rewriting, set AllowOverride all4, in config. add configuration in PHP: $ config ['SITE'] ['fancy '] = true; Openid supportedOpenid is becoming increasingly popular. Using openid makes it much easier to register and log on to websites. Enabling statusnet is very simple to support openid. 1. Slave = true; Possible problems1. When using the openid function, the following error occurs: "openid: Fatal error: Define auth_openid_rand_source as null to continue with an insecure random number generator. solution: In the openid client program AUTH/openid/cryptutil. in PHP, find "define ('auth _ openid_rand_source '," and change this row to: Define ('auth _ openid_rand_source', null ); 2. When openid is used, an unfound method is displayed or a prompt indicating that the database table does not exist. Solution: Download The openid client program of the appropriate version, statusnet of version 0.8.2 is compatible with PHP-openid of version 2.1.3.

 

Author: canbeing Source: Linear.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.