1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Problem with links in testing environment

Discussion in 'Server Configuration and Hosting' started by karll, Dec 28, 2012.

  1. karll

    karll Well-Known Member

    I'm sure I've made some stupid newbie mistake here ... Anyone care to give some advice?

    I've copied the database and all the XF files from the server to my Ubuntu laptop, configured Apache, edited /etc/hosts so that the domain name points to and so on. Basically attempted to set up a testing environment. Now, I actually thought this was already working before, but today I discovered there was a problem. Not sure if I've messed up something, or if this was a problem all along.

    Symptoms: The board index comes up just fine, but whenever I click on a hyperlink such as "What's New" or "Members", which (I think) needs to be handled by index.php, i.e. the link as-is doesn't refer to an actual file, then I get an error:

    And the error.log file says:
    What does work is e.g. logging in to the Admin Control Panel. This hyperlink points to a real file though: admin.php.

    I thought perhaps there was a problem with my .htaccess file since (if I understand correctly?) it's supposed to redirect various links to index.php, but the .htaccess file is identical to the one I have on the server ....

    Any ideas?
  2. karll

    karll Well-Known Member

    A-ha! Somehow my Apache rewrite module wasn't enabled. I enabled it and things are working again! :)

Share This Page