• In the next week or so I’m going to be moving my hosting for https://www.fogofeternity.com off (at last) a Windows server and onto a Linux one. This means that I can finally get rid of the unfriendly URL necessity under my Windows server of including “index.php” within the full address.

    I’m a bit of a .htaccess novice though, and what I want to ensure is that all the permalinks for my blog entries that are listed as “www.fogofeternity.com/index.php/2008/06/blogentry” are correctly redirected. Advice on how to do that would be very much appreciated.

    Cheers

Viewing 7 replies - 1 through 7 (of 7 total)
  • Baack up the database!!!

    After moving wordpress you should be able to just update the permalinks to those of your choice and it work. Theoretically…

    Thread Starter Robin Cannon

    (@fogofeternity)

    Yeah, will do on the database!

    Actually, was probably less clear than I should have been. Permalinks within the site should work fine. But obviously a lot of my blog posts are linked to from elsewhere, e.g. other blogs, plus Google etc. I basically want people who visit via those old links to avoid the 404 pages and get automatically redirected to the right pages.

    Old link was https://www.fogofeternity.com/index.php/2008/06/blogentry
    New link is now https://www.fogofeternity.com/2008/06/blogentry right?

    They should both land on the same page. I wouldn’t expect any 404s.

    Thread Starter Robin Cannon

    (@fogofeternity)

    That should be the case when I switch across, yet. If it’ll work automatically then that’d be cool. ??

    This should work, but doesn’t for me. according to apache.org, I shouldn’t use .htaccess if I can edit httpd.conf (I can). But no matter what I do, I can’t get permalinks w/o index.php to work properly nor can I get category or tag-based archives to work. What ends up happening is, no matter what post is requested, the most recent one is displayed.

    Any ideas?

    @paul – not really related to the original poster’s issue. A new thread on this topic might server you better.

    My stock response to your issue is (read that second paragraph closely):

    I’d say your Permalinks aren’t working. Check that page for troubleshooting tips.

    In particular, confirm with your host that mod_rewrite and AllowOverride are both on and enabled.

    yeah, my permalinks aren’t working.

    As for my host, I just looked in the mirror and checked, and yes, I have mod_rewrite and AllowOverride FileInfo on:

    Loaded Modules:
     core_module (static)
     mpm_prefork_module (static)
     http_module (static)
     so_module (static)
     authz_host_module (shared)
     include_module (shared)
     deflate_module (shared)
     log_config_module (shared)
     env_module (shared)
     mime_magic_module (shared)
     expires_module (shared)
     headers_module (shared)
     unique_id_module (shared)
     setenvif_module (shared)
     mime_module (shared)
     status_module (shared)
     asis_module (shared)
     info_module (shared)
     cgi_module (shared)
     vhost_alias_module (shared)
     negotiation_module (shared)
     dir_module (shared)
     actions_module (shared)
     speling_module (shared)
     userdir_module (shared)
     alias_module (shared)
     rewrite_module (shared)
     php5_module (shared)
    <Directory /usr/local/www/data-dist/wordpress>
        Options FollowSymLinks
        AllowOverride FileInfo

    If the codex was actually authoritative (read: edited for correctness), it would be more useful. As I learned in another thread, it recommends tools that are not 2.7 compatible, so who knows?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Redirecting all /index.php/ permalinks in .htaccess (switching to Linux server)’ is closed to new replies.