Page 1 of 1

S9y + Yahoo! Web Hosting

Posted: Tue Mar 14, 2006 2:41 am
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.

Re: S9y + Yahoo! Web Hosting

Posted: Tue Mar 14, 2006 12:28 pm
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

Posted: Tue Mar 14, 2006 11:36 pm
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?

Posted: Wed Mar 15, 2006 12:40 pm
by garvinhicking
Yes, you can change the URL Rewriting scheme anytime after installation!

Regards,
Garvin