S9y + Yahoo! Web Hosting

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
computerdude33
Posts: 2
Joined: Tue Mar 14, 2006 2:36 am

S9y + Yahoo! Web Hosting

Post by computerdude33 »

(please move if in wrong forum)

I know Y! is a bit iffy on permalinks. So, two questions:

1. Does S9y work on Yahoo! Small Business Web Hosting with permalinks working?

2. If not, could anyone give me a solution? Here is the WordPress Yahoo permalink code:

Code: Select all

<?php
/*
 * Copyright (c) Yahoo! Inc. 2005. All Rights Reserved.
 *
 * This file is part of Yahoo Permalink Plugin. The Yahoo Permalink Plugin
 * is free software; you can redistribute it and/or modify it under the terms
 * of the GNU General Public License as published by the Free Software
 * Foundation under version 2 of the License, and no other version. The Yahoo
 * Permalink plugin is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * You should have received a copy of the GNU General Public License
 * along with the Yahoo Permalink plugin; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
 */

/*
Plugin Name: Customizable Permalinks
Plugin URI: http://smallbusiness.yahoo.com/webhosting/
Description: Help drive and retain traffic to your site with the Customizable Permalinks plug-in, which enables you to give your readers easily understandable, static web addresses (URLs) for your pages. Customized permalinks make it easier for your readers to bookmark and share your blog posts.
Author: Yahoo! Web Hosting
Version: 1.0
Author URI: http://smallbusiness.yahoo.com/webhosting/
*/

function update_permalink_file() {
  if (isset($_POST['permalink_structure']) ) {
    if(empty($_POST['permalink_structure']) ) {
      unlink(get_home_path() . '.plink');
    } else {
      touch(get_home_path() . '.plink');
    }
  }

  if(strcmp($_GET['deactivate'],"true")==0){
      unlink(get_home_path() . '.plink');
  } else if(strcmp($_GET['activate'],"true")==0){
      touch(get_home_path() . '.plink');
  }
  unlink(get_home_path() . '.htaccess');
}

// Now we set that function up to execute when the admin_footer action is called
add_filter('mod_rewrite_rules', 'update_permalink_file');
add_action('mod_rewrite_rules', 'update_permalink_file');
?>
So, any ideas? I would like to know before I delete WP. Also, Y! doesn't allow uploading files with punctuation at the beginning of the name.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: S9y + Yahoo! Web Hosting

Post by garvinhicking »

Sadly I have no Y! experience.

Serendipity offers both mod_Rewrite or Apache ErrorDocument based "pretty URLs". It requires a ".htaccess" file to exist; you don't need to upload it, s9y creates it on its own.

I would suggest you to just install s9y into a test subdirectory. S9y installation takes no longer than 5 minutes, and then you're on the safe side.

I do suppose that if WP works with pretty URLs that s9y will work as well.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
computerdude33
Posts: 2
Joined: Tue Mar 14, 2006 2:36 am

Post by computerdude33 »

Thanks; I've worked with S9y before, and it's a very robust system.

On a related note, is it possible to change the clean URL system after installation?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Yes, you can change the URL Rewriting scheme anytime after installation!

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply