All URL's showing the home page content - looking for a fix. [RESOLVED]
This is a bit of a strange problem I have
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
-
Gerhard New
Ok I got the problem fixed, Ahquha is up and running XD - it was the .htaccess
This worked:
`
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php\?p=$1 [QSA,L]RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.example.org/$1 [R=301,L]
`5
Answers
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
Header set Cache-Control "max-age=315360000"
Header set Expires "31 December 2037 23:59:59 GMT"
`
Ok I got the problem fixed, Ahquha is up and running XD - it was the .htaccess
This worked:
`
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php\?p=$1 [QSA,L]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.example.org/$1 [R=301,L]
`
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