![]() |
VB showing index page instead of home page
Suddenly, my site shows, upon entry
https://vborg.vbsupport.ru/external/2014/07/36.jpg Why is that? Clicking on "forums" goes where it should go. |
You haven't done anything and your site is suddenly doing this? Check your options under sitename/url/details
Is your index.php file still in your root directory? |
root directory being
/public_html/forums/index.php yes, the file is there as it has always been.Just today I can see this anomaly No changes to that file, at least not by me, shows 644 permissions, as expected. The site was working well. |
Why don't you open that file and see if it contains correct contents. oh yes, I was thinking you were using the main root as your home. You are using the forum as your home page?
|
yes, to avoid the annoying CMS page, that has been like that for a year (the CMS junk put away).
Someone advised on this Forum, how to avoid that stupidity created by VB (CMS intrusions) , I have no and will never have any plug ins, my site is all vanilla. By that advice I put index.php and forum.php into my home directory. It was working well. Now, not. |
Did you use an htacces redirect to redirect the site from the root domain to forum? I would check your htaccess...
Not sure what could have caused this though out of the blue unless hacked, your host did something or another admin. |
That looks like someone messed with the .htaccess file or the httpd.conf file - both are server files. Did you do something to either of those? If not, ask you host if they did.
|
.htaccess is in
public_html/forums and contains : RewriteEngine On RewriteCond %{HTTP_HOST} ^(www.)?mysite.com$ RewriteRule ^(/)?$ forums [L] Removing .htaccess makes no difference, as if it is being bypassed. |
can we get a link to your site it might help
|
I don't want the .htaccess in the /forums directory, it is the root that is causing the issue. You either have something in your root .htaccess file that is causing the issue, or it's in your httpd.conf file.
|
This was the thread I thought I was just responding to in another thread.
OP-Post the contents of your root htaccess here please |
it was in post #8.
Contents of .htaccess RewriteEngine On RewriteCond %{HTTP_HOST} ^(www.)?mysite.com$ RewriteRule ^(/)?$ forums it is in /public_html directory. www.srbijadotokija.com now goes nowhere. |
1 Attachment(s)
Works for me. I did notice you have done your sections wrong, it really does look a mess
Try this htaccess file I done for you. If you have any custom things add them but do save a copy of the one you have |
Quote:
|
Copied content of the provided .htaccess file, still
HTTP 404 not found "The web page cannot be found" if I try www.srbijadotokija.com/forums it goes as expected. |
Don't copy what is in the file just upload it and overwrite the one you have. Also what are you using to edit your files and what do you have in your admincp/Site Name / URL / Contact Details/Forum URL
|
1 Attachment(s)
I see your problem you have all your files inside a folder called forums in your ftp try this htaccess file but just upload it over writing the one you have. You really would be best to keep all files outside the forum folder in other words have no folder called forums but its done now
|
downloaded the .htaccess file, unzipped and uploaded to /public_html using FileZilla.
Still same (HTTP not found 404) unless I use www.srbijadotokija.com/forums --------------- Added [DATE]1404441564[/DATE] at [TIME]1404441564[/TIME] --------------- Quote:
|
I guess that list of directories if I go to your root at http://www.srbijadotokija.com/ . Do you have an index.html or index.php file in the root directory (I am not talking about in the /forum directory)?
|
There are only directories and 1 file: .htaccess provided in this thread in the root directory.
No index.html or index.php in root. .htaccess file , 3 leading lines are RewriteEngine on RewriteCond %{HTTP_HOST} ^srbijadotokija.com [NC] RewriteRule ^(.*)$ http://www.srbijadotokija.com/forums/$1 [R=301,L] (it is much longer) --------------- Added [DATE]1404467476[/DATE] at [TIME]1404467476[/TIME] --------------- Far out... seems it's IE 11 that was causing failures to whatever I have tried. Now, my old .htaccess works, new one provided by ForceHSS works as well. The original problem was that .htaccess file somehow ended up in /public_html/forums/ directory. When I moved it to /public_html then a totally unrelated problem started happening: - The laptop where it did not work has IE 11 browser. - Another desktop, has IE 10 and it was not working there. - The laptop where it works has IE 8 browser, but that one was not used for testing what was being changed. When I did, presto! When you guys said "works for me" I should have realized you could be using Firefox or whatever else. Thanks to all who replied. The moral of the story could be: - ensure .htaccess is in the root directory - try different browser |
I thought you had it in your root if you told me you did not it would of saved a lot of time but it would still be better to transfer all files to outside the forum folder and not have a forums folder at all then you would not have problems
|
Quote:
--------------- Added [DATE]1404488179[/DATE] at [TIME]1404488179[/TIME] --------------- Quote:
I also thought this as this was what he said. Oh well, as long as it works.. Things like this are usually simple but hard to figure out unless we can go in ourselves. :D --------------- Added [DATE]1404488238[/DATE] at [TIME]1404488238[/TIME] --------------- Also, he said it happened suddenly and he did not do anything.. --------------- Added [DATE]1404488329[/DATE] at [TIME]1404488329[/TIME] --------------- Quote:
|
the .htaccess file did exist in ./ but was 0 length. Must be hackers who inserted ajax-2.php into my root directory 4 days ago.
One that was in /forums had proper content but was not used (was in wrong place). When moved to ./ one PC with IE 11 kept on showing failures. Other PC (IE 8) worked but it was tried a few hours and 10 posts in here later. Now, cleared cache and cookies on IE 11 PC (typing from it now) and it works there too. |
I don't know.. Very hard to troubleshoot without all the info. I must have missed where you told us about ajax-2.php being there. :D Sometimes in here it takes a bunch of people guessing because we do not have all the info when something like this can usually be figured out in 5 minutes if we were to look ourselves.
If you suspect your site was hacked then simply fixing the htaccess will not keep them out. You need to figure out how your site or server was comprised or if it is still vulnerable. I would address this asap. Usually a hacker breaks into a site to do more than just delete the contents of an htaccess file.:eek: |
Might be best to let someone here in to fix this problem for you
|
Quote:
|
lol
|
Quote:
If it is that hackers can get into my site as they please, then it is the webhostinghub.com problem. If they are coming through VBulletin, then that is the product (VBulletin) problem. Appreciating yout time and advice, I can say nobody would have to resort to "anyone who would listen" when there is a systemic issue. Good old IBM, myself worked for them, quality control, nobody is doing that way anymore. |
Why don't use post the contents of that ajax-2.php file so we can see what it is? If it is Debase64 code we can decode it and see what it is doing or attempting to do.
I would also check your diagnostics to see what files are not part of Vbulletin and for sure check your server logs. |
Can't post it, deleted it.
Maintenance - Diagnostics showed it as non-part of VB. Since removing it, comes clean. Changed all passwords that moment. I posted about it 2 weeks ago, seemed the provider had attack on sites they host, they informed me about removing some script "mail-allsin.php" and to check site if more is there. ajax-2.php was but i did not notice that .htaccess was zero length. |
I would put your forum in your Site Root, and change the Friendly URLS to "Mod Rewrite" in VB, and use the .htaccess file that is included with vbulletin, the .htaccess file should be in: "vbulletinsuite_Version_Patch_Level_#####\do_not_u pload\rewrite\apache2"
If you use Friendly URLs, your vb links will still show up as "yoursite.com/forum/name-of-category" even if you dont have vb in the Forum directory. Then copy the .htaccess file from there, to your forum root. There is also an htaccess file in the "do_not_upload\rewrite\apache2\forum\" if you have your vb in the "Forum" directory. This is how I have my forum setup too. |
Moving your site into the root directory will kill your seo and you will pretty much lose all your indxed content as it will have different urls.
Mod rewrite urls are not really going to matter much and are not needed any more. |
All times are GMT. The time now is 03:26 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|