2
   

How does it redirect to www.able2know.com?

 
 
Reply Sun 2 May, 2004 11:49 pm
Hello,

I saw that when I try to access your site without 'www' it redirects to www.able2know.com. How to achieve this?

Thanks,

Vishal
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Discussion • Score: 2 • Views: 2,038 • Replies: 10
No top replies

 
Craven de Kere
 
  1  
Reply Mon 3 May, 2004 03:11 am
This is a server configuration. Do you have a dedicated server? If not contact your host to discuss it because they will probaby have to do it.
0 Replies
 
vishalrao
 
  1  
Reply Mon 3 May, 2004 04:53 am
Hi,

I achieved it through:
http://www.widexl.com/scripts/documentation/mod_rewrite.html

I have installed your search engine mod to rewrite my phpbb urls to search engine friendly urls. I have added the code in the above url in addition to your rewrite codes specified for .htaccess file. I wonder that does not affect the performance of my site in any way. It's working fine now.

Thanks,

Vishal
0 Replies
 
LocanT
 
  1  
Reply Tue 6 Jul, 2004 04:59 am
Hi Craven and folks

Does anyone know if !

Is it possible to use htaccess to redirect all urls on a forum?

I have managed to do it for my main site

in my root of domain I have this code

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



the first two lines is after your suggestion Craven, the latter code is to redirect all urls to www.mysite.com


It seems to work Ok

but the forum is not changed

I have a seperate htaccess file in the forum section, but it does not seem to work it if I place the last two lines.

Can it be done??
0 Replies
 
Craven de Kere
 
  1  
Reply Tue 6 Jul, 2004 05:13 am
Yes, this is what I think is happening:

1) If you have an .htaccess file in the forums directory the one in root will not be used.

2) You probably have it there with my mod code.

3) "L" in the rules means it is the last rule processed.

I bet you put it at the end of the rules. Put it at the beginning and see what happens.

Another possibilty: did you turn on thr rewrite engine?
0 Replies
 
LocanT
 
  1  
Reply Tue 6 Jul, 2004 05:45 am
Thanks for that Craven

Yes your right, I do have htaccess in the forum section as well as root and it is in their(forum)with your rewrite and all works well.

The engine is on.

But
If I put the code

Quote:

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

in there either at the beginning or the end

it redirects the forum to the main site www.mysite.com
instead of mysite.com/forum.

Do I need to add the forum on the end of .com or something?
or are there too many variables?
0 Replies
 
Craven de Kere
 
  1  
Reply Tue 6 Jul, 2004 05:49 am
Arg, if I had understood that it was working for you, but going to the wrong page it'd have saved us time.

Just modify the rules to point to yoursite.com/forumdirectory/$1
0 Replies
 
LocanT
 
  1  
Reply Tue 6 Jul, 2004 05:51 am
just add that my aim is to have the forum links all end up as http://www.mysite.com/forum

instead of some at http://mysite.com/forum
0 Replies
 
LocanT
 
  1  
Reply Tue 6 Jul, 2004 06:04 am
Sorry about that Craven

Got it now I think!

Thanks to your mod the categories all have a little bit of PR and the index a 3(only a couple of months old and I have not submitted to any search engine)

I know the pr is not that high, but anyway it is all
at
http://mysite.com

Is there any negative of rewriting to that instead of www.

I read from your info in other sections that it would eventually level up anyway which ever I choose.

But as advise am I as well sticking to the one that has got some pr already?
0 Replies
 
Craven de Kere
 
  1  
Reply Tue 6 Jul, 2004 06:08 am
I recommend that you use www because a hosting configuration in the future may require it and better the change sooner rather than later.
0 Replies
 
LocanT
 
  1  
Reply Tue 6 Jul, 2004 06:12 am
Excellent

Thank you very much
0 Replies
 
 

Related Topics

Webdevelopment and hosting - Question by harisit2005
Showing an Ico File - Discussion by Brandon9000
how to earn money in internet - Discussion by rizwanaraj
The version 10 bug. Worse then Y2K! - Discussion by Nick Ashley
CSS Border style colors - Question by meesa
There is no Wisdom in Crowds - Discussion by ebrown p
THANK YOU CRAVEN AND NICK!!! - Discussion by dagmaraka
I'm the developer - Discussion by Nick Ashley
 
  1. Forums
  2. » How does it redirect to www.able2know.com?
Copyright © 2025 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.03 seconds on 01/17/2025 at 09:11:58