But i am getting this error on main page:
http://webmasterforumuk.com
when i add /index.php to the url means
http://webmasterforumuk.com/index.php it works...
The users are also reporting this redirection error....
--------------- Added [DATE]1385182732[/DATE] at [TIME]1385182732[/TIME] ---------------
Now even opera mini giving this error:
Code:
This webpage has a redirect loop
Please give a solution that the site won't show this error to users...
--------------- Added [DATE]1385188258[/DATE] at [TIME]1385188258[/TIME] ---------------
The site is still giving error.....can you please tell me what to do ..?
--------------- Added [DATE]1385199276[/DATE] at [TIME]1385199276[/TIME] ---------------
I asked about this from the host and they added the following code extra:
Code:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
Now the htaccess file is like this:
Code:
# Comment the following line (add '#' at the beginning)
# to disable mod_rewrite functions.
# Please note: you still need to disable the hack in
# the vBSEO control panel to stop url rewrites.
# Some servers require the Rewritebase directive to be
# enabled (remove '#' at the beginning to activate)
# Please note: when enabled, you must include the path
# to your root vB folder (i.e. RewriteBase /forums/)
RewriteEngine on
#RewriteBase /
#RewriteCond %{HTTP_HOST} ^webmasterforumuk\.com$ [OR]
#RewriteCond %{HTTP_HOST} ^www\.webmasterforumuk\.com$
#RewriteRule ^/?$ "http\:\/\/webmasterforumuk\.com\/" [R=301,L]
RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap|api\.php)
RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.+)$ vbseo.php [L,QSA]
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
Means two redirection codes....
--------------- Added [DATE]1385200505[/DATE] at [TIME]1385200505[/TIME] ---------------
Eddie,
I added
Code:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^canadianwebmasters\.com [NC]
RewriteRule (.*) http://www.canadianwebmasters.com/$1 [L,R=301]
to htaccess and now the domain is redirecting from non-www to www which want.
Is it ok?