Support ⇒ Explain Please ⇒ How to redirect www.domain.com to domain.com? ⇒ Community Forums ⇒ CPG Dragonfly™ CMS
Forum IndexExplain Please

How to redirect www.domain.com to domain.com? This topic is locked: you cannot edit posts or make replies.


I'm afraid it's not the cause.

I use multiple virtual hosts on apache. The site path / is just fine. Changing to any others will corrupt the site.

I am more convinced to think it is related to .htaccess and LEO.

I tried to turn off LEO to test. But the links on the site remains LEOed.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
2003 / 2.4.3/ 5.5.27/ 5.4.7 / 9.3.4.1


And the weird thing is that I'm receiving an error from svn which mentions error.php.

I can almost be sure the error.php is referred to the one used in dragonfly.

You can see detailed error information in this post:

www.svnforum.org/threa...m?p=134101

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
2003 / 2.4.3/ 5.5.27/ 5.4.7 / 9.3.4.1


Things are getting more and more interesting. I place a verification file under site root. When I click on the link espc.asia/xxxxxxxxxxxx.html, the site can show the content of that page correctly (but google was not able to connect to my site).

But just now when I want to try verifying it once again. I get an error! The site is searching for the html file in Modules folder, whereas it is in the root directory.

By the way, how to turn of those debug messages?

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
2003 / 2.4.3/ 5.5.27/ 5.4.7 / 9.3.4.1


Jermin wrote
I'm afraid it's not the cause.

I use multiple virtual hosts on apache. The site path / is just fine. Changing to any others will corrupt the site.

I am more convinced to think it is related to .htaccess and LEO.

I tried to turn off LEO to test. But the links on the site remains LEOed.


from what i could see, the links are not even being generated by dragonfly, they are hard coded into the template, that is why turning leo off does not work. Wink

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Multiple Setups


Jermin wrote
Things are getting more and more interesting. I place a verification file under site root. When I click on the link espc.asia/xxxxxxxxxxxx.html, the site can show the content of that page correctly (but google was not able to connect to my site).

But just now when I want to try verifying it once again. I get an error! The site is searching for the html file in Modules folder, whereas it is in the root directory.

By the way, how to turn of those debug messages?




use the meta tag verification, put it the header.html of all your themes

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Multiple Setups


Jermin wrote
And the weird thing is that I'm receiving an error from svn which mentions error.php.

I can almost be sure the error.php is referred to the one used in dragonfly.

You can see detailed error information in this post:

www.svnforum.org/threa...m?p=134101



I dont think that is referring to DF error.php but could be. I m not sure

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Multiple Setups


Here is a picture with original size so that you can see it more clearly:



I've tried all verification methods. All kinds of verification fail because Google is not able to connect to my server.

And I only hardcode LEO links for navigation bars. All the other links are still generated by dragonfly.

Oops, it seems that the forum automatically resized the picture. Please open it in a new window to see the full-size one.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
2003 / 2.4.3/ 5.5.27/ 5.4.7 / 9.3.4.1


I would restore all core files using a fresh downloaded copy, that error says you requested /googleverify.html but then it says /modules/googleverify.html does not exist

also remember you have to clear your cache on the website after you make theme/template changes.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Multiple Setups


Jermin wrote
The only I did were:

1. Added
Options +FollowSymlinks rewritecond %{http_host} ^www.espc.asia [nc] rewriterule ^(.*)$ http://espc.asia/$1 [r=301,nc]

2. Deleted

RewriteCond %{HTTP_USER_AGENT} Baidu [NC,OR]

3. Changed

RewriteCond %{REQUEST_FILENAME} -f [NC,OR]

to:

RewriteCond %{REQUEST_FILENAME} [NC,OR]

because it is complaining following error:

RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored.

which makes the log size growing rapidly.


NanoCaiordo wrote
RewriteCond %{REQUEST_FILENAME} -f [OR]

.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux / Apache 2.4 LSAPI / MySQLi 5.6 / PHP 5.6 / DCVS


I manage to turn off LEO. Apache still reports those errors for non-LEO links.

The errors are generated when I visit a page. But all resources on my site work normally. There aren't missing images, broken links etc. So I don't know why Apache reports such kind of errors. Maybe I'll just ignore them for the time being.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
2003 / 2.4.3/ 5.5.27/ 5.4.7 / 9.3.4.1


dragonflycms.org/Forum...tml#157108

.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux / Apache 2.4 LSAPI / MySQLi 5.6 / PHP 5.6 / DCVS


Just now when I was visiting espc.asia/Content/play...d=38.html, Chrome shows a error page displaying "This webpage has a redirect loop". I think the problem is related to either .htaccess or my apache config

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
2003 / 2.4.3/ 5.5.27/ 5.4.7 / 9.3.4.1


sounds like a PEBKAC Error - follow the directions Nano gave you here

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Multiple Setups


my .htaccess is already the original one

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
2003 / 2.4.3/ 5.5.27/ 5.4.7 / 9.3.4.1

All times are UTC
Post new topic This topic is locked: you cannot edit posts or make replies. Forum IndexExplain Please
Page 2 of 2


Jump to: