View Full Version : VB showing index page instead of home page
loua_oz
07-03-2014, 11:17 AM
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.
RichieBoy67
07-03-2014, 11:22 AM
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?
loua_oz
07-03-2014, 11:31 AM
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.
RichieBoy67
07-03-2014, 11:56 AM
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?
loua_oz
07-03-2014, 12:09 PM
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.
RichieBoy67
07-03-2014, 12:21 PM
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.
Lynne
07-03-2014, 05:08 PM
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.
loua_oz
07-03-2014, 07:55 PM
.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.
ForceHSS
07-03-2014, 08:21 PM
can we get a link to your site it might help
Lynne
07-03-2014, 08:49 PM
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.
RichieBoy67
07-03-2014, 10:47 PM
This was the thread I thought I was just responding to in another thread.
OP-Post the contents of your root htaccess here please
loua_oz
07-03-2014, 10:53 PM
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.
ForceHSS
07-03-2014, 11:36 PM
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
RichieBoy67
07-03-2014, 11:39 PM
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 (http://www.srbijadotokija.com) now goes nowhere.
works for me too..
loua_oz
07-04-2014, 12:28 AM
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.
ForceHSS
07-04-2014, 12:34 AM
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
ForceHSS
07-04-2014, 12:42 AM
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
loua_oz
07-04-2014, 01:38 AM
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 1404441564 at 1404441564 ---------------
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
webhostinghub (the provider) have CPanel with editor and code editor. When editing anything, using their tools.
Lynne
07-04-2014, 02:21 AM
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)?
loua_oz
07-04-2014, 03:56 AM
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 1404467476 at 1404467476 ---------------
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
ForceHSS
07-04-2014, 12:28 PM
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
RichieBoy67
07-04-2014, 02:34 PM
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 (http://www.srbijadotokija.com) now goes nowhere.
I wasn't aware because you edited the post. The first one you posted was from the /forums directory. :)
--------------- Added 1404488179 at 1404488179 ---------------
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
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 1404488238 at 1404488238 ---------------
Also, he said it happened suddenly and he did not do anything..
--------------- Added 1404488329 at 1404488329 ---------------
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 04 Jul 2014 at 05:51 ---------------
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 am still a bit confused. The redirects should work in any browser if it is in the right place, the root.
loua_oz
07-05-2014, 12:33 AM
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.
RichieBoy67
07-05-2014, 12:56 AM
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:
ForceHSS
07-05-2014, 01:00 AM
Might be best to let someone here in to fix this problem for you
RichieBoy67
07-05-2014, 01:01 AM
Might be best to let someone here in to fix this problem for youI know some who is good at this stuff too! His name is ForceHSS! lol
ForceHSS
07-05-2014, 01:26 AM
lol
loua_oz
07-05-2014, 11:19 AM
Might be best to let someone here in to fix this problem for you
Thanks for the offer and your help along the way.
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.
RichieBoy67
07-05-2014, 01:08 PM
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.
loua_oz
07-06-2014, 12:11 AM
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.
thetechgenius
07-07-2014, 12:37 AM
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_up load\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.
RichieBoy67
07-07-2014, 03:07 AM
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.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.