Server Error

Status
Not open for further replies.

sunjava1194

New Member
Messages
22
Reaction score
0
Points
0
I got
Server Error


when visiting my site from google
"keyword: vubscs" => Result www.vubscs.tk
Then, I removed www and it works. I want to know why I am getting this error? as my site is indexed on google with www.

I am a newbie, and dont know much about x10hosting.
P.S help
 

calistoy

Free Support Volunteer
Community Support
Messages
5,602
Reaction score
87
Points
48
Could you check your .htaccess file and post it's contents here? Also check the advanced dns zone settings in your cPanel to see if there is a cname listed with www for your domain.
 
Last edited:

sunjava1194

New Member
Messages
22
Reaction score
0
Points
0
yes in cpanel it is:-
Name--------------------------------Record
www.vubscs.tk. IN CNAME vubscs.tk

and here is the htaccess, i setup redirect when the issue comes. but didnt work
Code:
RewriteBase /

RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.(.*) [NC]
RewriteRule ^(.*) http://%1/$1 [R=301,L]

RedirectMatch ^/forum/(.*)$ http://vubscs.tk/$1

ErrorDocument 404 /error.php



Options -MultiViews +FollowSymlinks -Indexes

#
# If mod_security is enabled, attempt to disable it.
# - Note, this will work on the majority of hosts but on
#   MediaTemple, it is known to cause random Internal Server
#   errors. For MediaTemple, please remove the block below
#
<IfModule mod_security.c>
	# Turn off mod_security filtering.
	SecFilterEngine Off

	# The below probably isn't needed, but better safe than sorry.
	SecFilterScanPOST Off
</IfModule>

#
# MyBB "search engine friendly" URL rewrites
# - Note, for these to work with MyBB please make sure you have
#   the setting enabled in the Admin CP and you have this file
#   named .htaccess
#
<IfModule mod_rewrite.c>
	RewriteEngine on
	RewriteRule ^forum-([0-9]+)\.html$ forumdisplay.php?fid=$1 [L,QSA]
	RewriteRule ^forum-([0-9]+)-page-([0-9]+)\.html$ forumdisplay.php?fid=$1&page=$2 [L,QSA]

	RewriteRule ^thread-([0-9]+)\.html$ showthread.php?tid=$1 [L,QSA]
	RewriteRule ^thread-([0-9]+)-page-([0-9]+)\.html$ showthread.php?tid=$1&page=$2 [L,QSA]
	RewriteRule ^thread-([0-9]+)-lastpost\.html$ showthread.php?tid=$1&action=lastpost [L,QSA]
	RewriteRule ^thread-([0-9]+)-nextnewest\.html$ showthread.php?tid=$1&action=nextnewest [L,QSA]
	RewriteRule ^thread-([0-9]+)-nextoldest\.html$ showthread.php?tid=$1&action=nextoldest [L,QSA]
	RewriteRule ^thread-([0-9]+)-newpost\.html$ showthread.php?tid=$1&action=newpost [L,QSA]
	RewriteRule ^thread-([0-9]+)-post-([0-9]+)\.html$ showthread.php?tid=$1&pid=$2 [L,QSA]

	RewriteRule ^post-([0-9]+)\.html$ showthread.php?pid=$1 [L,QSA]

	RewriteRule ^announcement-([0-9]+)\.html$ announcements.php?aid=$1 [L,QSA]

	RewriteRule ^user-([0-9]+)\.html$ member.php?action=profile&uid=$1 [L,QSA]

	RewriteRule ^calendar-([0-9]+)\.html$ calendar.php?calendar=$1 [L,QSA]
	RewriteRule ^calendar-([0-9]+)-year-([0-9]+)\.html$ calendar.php?action=yearview&calendar=$1&year=$2 [L,QSA]
	RewriteRule ^calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)\.html$ calendar.php?calendar=$1&year=$2&month=$3 [L,QSA]
	RewriteRule ^calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)-day-([0-9]+)\.html$ calendar.php?action=dayview&calendar=$1&year=$2&month=$3&day=$4 [L,QSA]
	RewriteRule ^calendar-([0-9]+)-week-(n?[0-9]+)\.html$ calendar.php?action=weekview&calendar=$1&week=$2 [L,QSA]

	RewriteRule ^event-([0-9]+)\.html$ calendar.php?action=event&eid=$1 [L,QSA]

	<IfModule mod_env.c>
		SetEnv SEO_SUPPORT 1
	</IfModule>
</IfModule>

#
# If Apache is compiled with built in mod_deflade/GZIP support
# then GZIP Javascript, CSS, HTML and XML so they're sent to
# the client faster.
#
<IfModule mod_deflate.c>
	AddOutputFilterByType DEFLATE application/javascript text/css text/html text/xml
</IfModule>
RewriteCond %{HTTP_HOST} ^vubscs\.tk$ [OR]
RewriteCond %{HTTP_HOST} ^www\.vubscs\.tk$
RewriteRule ^forum$ "http\:\/\/vubscs\.tk\/" [R=301,L]
 

GtoXic

x10 Support
Messages
636
Reaction score
17
Points
0
Hi there, I stuck your .htaccess in a validator and got 20 errors, anything with (152) is what you want to look at.
line 21:<IfModule mod_security.c>
line 22:(2) # Turn off mod_security filtering.
line 23:SecFilterEngine Off
line 24:
line 25:(2) # The below probably isn't needed, but better safe than sorry.
line 26:SecFilterScanPOST Off
line 36:RewriteEngine on
line 37:(152) RewriteRule ^forum-([0-9]+)\.html$ forumdisplay.php?fid=$1 [L,QSA]
line 38:(152) RewriteRule ^forum-([0-9]+)-page-([0-9]+)\.html$ forumdisplay.php?fid=$1&page=$2 [L,QSA]
line 39:
line 40:(152) RewriteRule ^thread-([0-9]+)\.html$ showthread.php?tid=$1 [L,QSA]
line 41:(152) RewriteRule ^thread-([0-9]+)-page-([0-9]+)\.html$ showthread.php?tid=$1&page=$2 [L,QSA]
line 42:(152) RewriteRule ^thread-([0-9]+)-lastpost\.html$ showthread.php?tid=$1&action=lastpost [L,QSA]
line 43:(152) RewriteRule ^thread-([0-9]+)-nextnewest\.html$ showthread.php?tid=$1&action=nextnewest [L,QSA]
line 44:(152) RewriteRule ^thread-([0-9]+)-nextoldest\.html$ showthread.php?tid=$1&action=nextoldest [L,QSA]
line 45:(152) RewriteRule ^thread-([0-9]+)-newpost\.html$ showthread.php?tid=$1&action=newpost [L,QSA]
line 46:(152) RewriteRule ^thread-([0-9]+)-post-([0-9]+)\.html$ showthread.php?tid=$1&pid=$2 [L,QSA]
line 47:
line 48:(152) RewriteRule ^post-([0-9]+)\.html$ showthread.php?pid=$1 [L,QSA]
line 49:
line 50:(152) RewriteRule ^announcement-([0-9]+)\.html$ announcements.php?aid=$1 [L,QSA]
line 51:
line 52:(152) RewriteRule ^user-([0-9]+)\.html$ member.php?action=profile&uid=$1 [L,QSA]
line 53:
line 54:(152) RewriteRule ^calendar-([0-9]+)\.html$ calendar.php?calendar=$1 [L,QSA]
line 55:(152) RewriteRule ^calendar-([0-9]+)-year-([0-9]+)\.html$ calendar.php?action=yearview&calendar=$1&year=$2 [L,QSA]
line 56:(152) RewriteRule ^calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)\.html$ calendar.php?calendar=$1&year=$2&month=$3 [L,QSA]
line 57:(152) RewriteRule ^calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)-day-([0-9]+)\.html$ calendar.php?action=dayview&calendar=$1&year=$2&month=$3&day=$4 [L,QSA]
line 58:(152) RewriteRule ^calendar-([0-9]+)-week-(n?[0-9]+)\.html$ calendar.php?action=weekview&calendar=$1&week=$2 [L,QSA]
line 59:
line 60:(152) RewriteRule ^event-([0-9]+)\.html$ calendar.php?action=event&eid=$1 [L,QSA]
line 61:
 

sunjava1194

New Member
Messages
22
Reaction score
0
Points
0
Well this is nothing, Its just re write rule for mybb forum, I used it with my old host. and when you install mybb. They give you this htaccess if you want to gzip your forum. So I think this is not the problem,

---------- Post added at 07:10 PM ---------- Previous post was at 06:58 PM ----------

Any one here to solve the issue, I am affecting very much by this
 
Status
Not open for further replies.
Top