HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Please upgrade here. These earlier versions are no longer being updated and have security issues.

All URL's showing the home page content - looking for a fix. [RESOLVED]

GerhardGerhard New
edited December 2016 in Vanilla 2.0 - 2.8

This is a bit of a strange problem I have :surprised:

Every link on my website shows the same content as the homepage, so for example:
https://www.ahquha.org/entry/signin?Target=discussions && https://www.ahquha.org/dashboard
shows the same content as:
https://www.ahquha.org/ (my home page)

The strangest part is that I didn't update or edit or add any plugins/addons/themes etc. at least 24 hours before the error suddenly showed up. It was working fine one moment, then I got a 500 Internal Error - after talking with my web providers Siteground, they fiddled with the .htaccess which removed the 500 Internal Error, but it left me with this issue I have now.

I know

  • ahquha.org/discussion/142/is-pizzagate-real-what-is-the-actual-evidence-what-can-we-prove-actually-happened
  • and ahquha.org/discussion/142/
  • and ahquha.org/discussion/142/blah-blah-blah
    would always render the same webpage, I'm thinking it could be related to this?

It could also be important that this error showed up in Vanilla 2.1 - but I upgraded to 2.3 to see if tat would fix things, and the error is still there?

Any advice is appreciated - I have no idea where to go from here.
I've tried:

  • Turning off all the plugins
  • Changing to a default theme
  • Looked though .config for errors
  • Upgrading to PHP 7
  • Turning off all caching and CDN

Best Answer


  • Here is my .htaccess - I'm thinking it could be important.

    `# Modified

    If you modify this file then change the above line to: # Modified

    RewriteEngine On

    # Certain hosts may require the following line.
    # If vanilla is in a subfolder then you need to specify it after the /.
    # (ex. You put Vanilla in /forum so change the next line to: RewriteBase /forum)
    RewriteBase /
    RewriteCond %{QUERY_STRING} ^p=/?([^&]+)(&([^?]+))?$
    RewriteRule ^index\.php %1?%3 [E=X_REWRITE:1,L]
    # The basic rewrite rule.
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php [QSA,E=X_REWRITE:1,E=X_PATH_INFO:/$1,L]
    # Add the proper X_REWRITE server variable for rewritten requests.
    RewriteCond %{ENV:REDIRECT_X_REWRITE} .+
    RewriteCond %{ENV:REDIRECT_X_PATH_INFO} (.+)
    # 301 redirect urls that start with index.php
    #RewriteCond %{REQUEST_METHOD} GET [NC]
    #RewriteCond %{REQUEST_URI} ^(.*?)/index\.php(.*)$
    #RewriteRule ^index\.php /%1%2 [QSA,R,L]

    Header set Cache-Control "max-age=315360000"
    Header set Expires "31 December 2037 23:59:59 GMT"


  • Please i have similar problem on my site i didnt get how you fix this because this is same content in my .htaccess. Please kindly share

Sign In or Register to comment.