Thursday, March 8, 2012

Install Wordpress In Blog Name Subdirectory

WordPress not allow installing wordpress into subdirectory name with blog.

Here are some step to remove this restrictions.

WordPress hook directory : subdirectory_reserved_names

 

Wp-admin/ms-edit.php line no:154

//$subdirectory_reserved_names = apply_filters( ‘subdirectory_reserved_names’, array( ‘page’, ‘comments’, ‘blog’, ‘files’, ‘feed’ ) );
$subdirectory_reserved_names = apply_filters( ‘subdirectory_reserved_names’, array( ‘page’, ‘comments’, ‘files’, ‘feed’ ) );

 

Wp-includes/ms-functions.php line no:516

//$subdirectory_reserved_names = apply_filters( ‘subdirectory_reserved_names’, array( ‘page’, ‘comments’, ‘blog’, ‘files’, ‘feed’ ) );
$subdirectory_reserved_names = apply_filters( ‘subdirectory_reserved_names’, array( ‘page’, ‘comments’, ‘files’, ‘feed’ ) );

 

Wp-includes/ms-settings.php Line no: 73

//$reserved_blognames = array( ‘page’, ‘comments’, ‘blog’, ‘wp-admin’, ‘wp-includes’, ‘wp-content’, ‘files’, ‘feed’ );
$reserved_blognames = array( ‘page’, ‘comments’, ‘wp-admin’, ‘wp-includes’, ‘wp-content’, ‘files’, ‘feed’ );

 

 

http://www.justwebdevelopment.com/blog/install-wordpress-in-blog-name-subdirectory/

3 comments:

  1. [...] 弄这个站差不多两个月了,遇到很多问题,今天总算用子目录/blog 成功创建博客。 WordPress默认不是能使用/blog这个sub-directory的, 想了很多办法才解决了,还是Google 给力, 在百度上面找了很久,在QQ群里也很问了好多人,都不知道,具体方法在这里:http://mobody.info/148 [...]

    ReplyDelete
  2. The information on this post is beneficial.

    ReplyDelete
  3. It’s time to say that you impressed us with your superior data about this good topic. Thus, we would attempt to finish the thesis papers on the base of your issue. Or believably, it is doable to find the thesis service.

    ReplyDelete

Tomb sweeping day

It's Tomb-Sweeping Day Today. It's a very important traditional Chinese festival. It's a day for tomb-sweeping. People visit the...