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

XF 1.1 Pretty URL Not Working Completely

Discussion in 'Troubleshooting and Problems' started by ting.mike, Jul 6, 2012.

  1. ting.mike

    ting.mike Member

    I believe the XenForo guide states that to enable pretty URL for Apache all I have to do is:
    1. Confirm mod_rewrite is installed - YES
    2. Create an .htaccess file on the xenForo root - YES
    3. Turn on pretty URL through the Admin > Options settings.

    When I did that the last time, everything is broken. Blank pages including the admin screen. Anything I missed? Luckily I had to reinstall my VPS and so I'm starting back from scratch again.

  2. ting.mike

    ting.mike Member

    Still nothing.. :(

    Got the mod_rewrite
    Got the .htaccess (From the htaccess.txt file)

  3. ting.mike

    ting.mike Member

    Okay this was the problem for me:

    1. I had the .htaccess file on the correct xenforo folder
    2. mod_rewrite was already enabled

    There was one more thing to get things to work:
    I had to edit this file:

    Find the following
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    allow from all

    and change it to

    Options Indexes FollowSymLinks MultiViews
    AllowOverride all
    Order allow,deny
    allow from all

    and finally restart Apache
    /etc/init.d/apache2 restart

    Jake Bunce likes this.
  4. ting.mike

    ting.mike Member

    I think there is a bug or something...

    I was editing the .htaccess on the www root folder to protect Xenforo's admin.php using .htpasswd. Had some problems getting the password to be recognized, so I decided to revert back the admin.php without .htpasswd protection. I changed the .htaccess back to the previous configuration and restarted apache.

    Then all I'm getting is blank pages (like on the first post). Just blank pages. I went back and double check everything, still blank pages. Plain white blank pages. Googled every possible phrases related to mod_rewrite, blank pages, xenforo, url rewrite, didn't find any solution. The only problem quoted by the articles is that if mod_rewrite is not there, then you will get blank pages. But I have mod_rewrite loaded and confirmed on the php info page.

    Restarted the server, apache multiple times, dismounted mod_rewrite, mounted mod_rewrite back on, still nothing.

    Any clue? I'm desperate. The forum was running fine this three days until this happened.
  5. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Do other web pages load besides the forum?

    A blank page is often a suppressed error. Try adding this line to your library/config.php file to see if that reveals any specific error message on the blank page:

    ini_set('display_errors', true);
  6. ting.mike

    ting.mike Member

    Thanks, Jake.. believe me or not it takes me less time (~50 mins) to reinstall my VPS, start with a clean machine, reinstall everything and restore Xenforo (through phpmyadmin) than trying to troubleshoot this (~3hours with no results).
  7. Cory Booth

    Cory Booth Well-Known Member

    For an issue I thought I'd share - I had trouble with a url /forms it reported 404
    Turns out I had a forms.htm file which caused the problem.

Share This Page