Please upgrade here. These earlier versions are no longer being updated and have security issues.

"Page Not Found" on homepage

Hey there, I'm not IT expert, just trying to play around with XAMPP + local installed Vanilla forum, after fresh install of 2.5.2, I found the "Page Not Found" error on home page. but if i click "activity" link, page displays normal. so I used dashboard to import my online-forum data, problem still there, and even I upgraded the forum to 2.6, "page Not Found" error still stays unchanged.

I tried to explore other discussions, but still no clue about a possible solution.

just attached by .htaccess file here, anyone can help?

Original

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 /

# Make sure that / doesn't try to go to index.php without a rewrite :)
DirectoryIndex disabled

####
# Deny access to certain directories that SHOULD NOT be exposed.
####
RewriteRule (^|/)\.git - [L,R=403]
RewriteRule ^cache/ - [L,R=403]
RewriteRule ^cgi-bin/ - [L,R=403]
RewriteRule ^uploads/import/ - [L,R=403]
RewriteRule ^vendor/ - [L,R=403]

####
# Prevent access to any php script by redirecting the request to /index.php
# You can add an exception by adding another RewriteCond after this one.
# Example: RewriteCond %{REQUEST_URI} !^/yourscriptname.php$
# You can comment out this section if it causes you problems.
# This is just a nice to have for security purposes.
####
RewriteCond %{REQUEST_URI} !/index.php$
RewriteRule (.+\.php) [E=X_REWRITE:1,E=X_PATH_INFO:/$1,L]

####
# Redirect any non existing file/directory to /index.php
####
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule (.*) index.php [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} (.+)
RewriteRule ^index\.php - [E=X_REWRITE:1,E=!REDIRECT_X_REWRITE,E=X_PATH_INFO:%1,E=!REDIRECT_X_PATH_INFO,L]



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

Comments

  • I think I need to repost the question under "vanilla 2.6 help"

  • whu606whu606 I'm not a SuperHero; I just like wearing tights... Moderator

    I've moved it to 2.6.

    If you activate any plugin the forum will work.

    Go to Dashboard via activity page.

    I've reported this on GitHub.

    yenan
  • yes, after activating plugin(s), it works now. thanks @whu606!!!!

Sign In or Register to comment.