• I moved my blog to my domain’s root directory and everything works perfectly except I’m having a big issue with the .htaccess file. First, I don’t think I ever had one… I use yahoo to host my site, and I’ve been reading that Windows servers don’t have htacess files (I’m assuming Yahoo uses Windows servers).

    So when I tried to create and upload a .htaccess file to my website’s root directory, it wouldn’t allow me to edit it.

    So how can I still use the format:

    https://theinvestorsjournal.com/2007/09/11/sample-post/

    If I have no .htaccess file and cannot make one?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Cal

    (@themesbycal)

    Looking at Yahoo’s hosting page, I don’t think they use windows……but not entirely sure.

    I don’t think there’s a way around using .htaccess for rewriting your url’s…..

    Did you have friendly url’s before the move?

    Can you try and give me more information.

    Thread Starter SgrWd

    (@adamf24)

    Please excuse my ignorance, but what are friendly urls? If you mean did I have a link structure such as

    https://www.website.com/category/post-name/

    Then yea that’s how I had my permalink structure before I changed my blog to the root directory

    Also, what more information do you need to help me?

    Edit: I just read from another support post that Yahoo indeed doesn’t have/support .htaccess files

    Cal

    (@themesbycal)

    Sorry, by friendly url’s, I mean permalinks, like the example you have above. /date/title

    You said “how can I still use” that tells me that you had them working before…..

    Sooo, if you had them working before, then you had an .htaccess file there.

    For further information I mean, what did you have under permalink settings before the move, and after the move?

    Changing the permalink settings should edit the .htaccess file for you, you shouldn’t need to edit it yourself…

    Thread Starter SgrWd

    (@adamf24)

    Hmm.. check this out. This is the source for the Customizble plugin by yahoo

    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');
      }
    <strong>  unlink(get_home_path() . '.htaccess');</strong>}
    
    // 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');
    ?>

    Thread Starter SgrWd

    (@adamf24)

    It mentions .htaccess in the source.. so perhaps I do have an .htaccess file? How can I find it then? It’s not showing up in the file manager or the ftp program.

    Thread Starter SgrWd

    (@adamf24)

    Why is this thread acting weird? One of my posts is always missing..

    Cal

    (@themesbycal)

    You say that Yahoo doesn’t support .htaccess file but you had friendly urls…..

    And here you’re showing me a plugin by Yahoo……that must make the friendly url’s possible?

    They must have a different way of doing this or a central .htaccess file that you can’t access for security purposes.

    Maybe someone with more Yahoo experience can jump in and help us out……

    Thread Starter SgrWd

    (@adamf24)

    This was found off Yahoo’s small business home directory, listed under .htaccess

    “Yahoo! does not currently allow you to upload .htaccess files to your account. For other customization options, we recommend the Custom Error Pages and password-protection features available in your Web Hosting Control Panel. ”

    Thread Starter SgrWd

    (@adamf24)

    I think I’ll just stick to the default permalink structure. It’s going to be a mission to figure this out.

    Thanks for all your help though.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘.htaccess on windows server problems and questions’ is closed to new replies.