PDA

View Full Version : Urgent -- domain not redirecting?


redhawk89
04-30-2009, 02:26 AM
Hey there. I just installed vB Blog, and when I did so, all of a sudden when my users point to http://www.saskforum.ca it comes up as non-existant.

if I manually browse to http://www.saskforum.ca/index.php it works though.

Please help!

--------------- Added 1241063173 at 1241063173 ---------------

#Rename this file to .htaccess and upload it to the root directory of your forum. This is compatible only with Apache.
#If you have a dedicated webserver, add these line in the apache configuration file. With this tip, the file will not reload every time a page is displyed.

RewriteEngine On

RewriteCond %{HTTP_HOST} ^www\.saskforum\.ca$
RewriteRule ^(.*)$ http://saskforum.ca/$1 [L,R=301]
RewriteRule ^(.*)t([0-9]+)(.*)newpost(.*)$ showthread.php?t=$2&goto=newpost [QSA,L]
RewriteRule ^(.*)f(.*)/(.*)t([0-9]+)(.*)/post([0-9]+)(.*)$ showpost.php?p=$6 [QSA,L]
RewriteRule ^(.*)f(.*)/(.*)t([0-9]+)(.*)/([a-z]+)([0-9]+)(.*)$ showthread.php?t=$4&page=$7 [QSA,L]
RewriteRule ^(.*)f(.*)/(.*)t([0-9]+)(.*)$ showthread.php?t=$4 [QSA,L]
RewriteRule ^(.*)f([0-9]+)/([a-z]+)([0-9]+)(.*)$ forumdisplay.php?f=$2&page=$4 [QSA,L]
RewriteRule ^f([0-9]+)(.*)$ forumdisplay.php?f=$1 [QSA,L]
RewriteRule ^(.*)-f([0-9]+)(.*)$ forumdisplay.php?f=$2 [QSA,L]





That is what it in the .htaccess file, I'm told it could be this but I dont know how to solve it.

nomoreturn
04-30-2009, 04:41 AM
Hello, i also had same problem and Lynne help me to fix it he gave me this thread link about this problem

https://vborg.vbsupport.ru/showthread.php?t=212106&highlight=htaccess


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

replace this with

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


i did this and my site working properly hope its works for you too but before doing this make a copy of your old .htaccess file so if its not work you have the old one to upload again