Find the answer to your Linux question:
Results 1 to 2 of 2
There is an old application out there with a link to what used to be a wiki, https://server1.domian/wiki/index.php server1 no longer hosts the wiki, so I added a statement to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie jnojr's Avatar
    Join Date
    Sep 2007
    Location
    San Diego, CA
    Posts
    118

    httpd rewrite rule


    There is an old application out there with a link to what used to be a wiki, https://server1.domian/wiki/index.php server1 no longer hosts the wiki, so I added a statement to httpd.conf:

    Redirect permanent /wiki https://server2.domain/wiki/index.php/New_Wiki

    That gets me to a URL:

    https://server2.domain/wiki/index.ph...Wiki/index.php

    So I added a second rule:

    Redirect permanent /wiki/index.php https://server2.domain/wiki/index.php/New_Wiki

    But I'm still being redirected to https://server2.domain/wiki/index.ph...Wiki/index.php I would prefer to handle this correctly on server1 rather than adding a rule on server2 to redirect /wiki/index.php/New_Wiki/index.php to /wiki/index.php/New_Wiki

  2. #2
    Linux Enthusiast scathefire's Avatar
    Join Date
    Jan 2010
    Location
    Western Kentucky
    Posts
    626
    is there another rewrite rule or something that appends on the index.php? you may have something weird inside your config, usually has something to do with trailing slashes. its kind of hard to tell without looking at the configs.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •