25, July 2008

www and without www... - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web hosting talk  >  Configuring your server  >  Apache web server
Topic: www and without www...
« previous next »
Pages: [1] Print

Author Topic: www and without www...  (Read 942 times)
Community Supporter ?
World Wide Whale
***
Gender: Male
Posts: 159
1042 credits
Members referred : 1



« on: Jun 03, 2007, 10:34:50 PM »

I don't know how to search that here...
but I would like to redirect the domain freebiesociety.com/forums
at www.freebiesociety.com/forums Visit through proxy

I try that but nothing happened... :

RewriteEngine on
RewriteCond %{HTTP_HOST} ^freebiesociety/forums\.com
RewriteRule ^(.*)$ http://www.freebiesociety.com/forums/ Visit through proxy$1 [R=permanent,L]

I have serious problem with the login page...

Any opinions?
Thanks in advance Smiley
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6280
38506 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: Jun 03, 2007, 10:51:35 PM »

check the server variable for http_host


Last blog : 4th of July Lottery from TemplateMonster.com
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6280
38506 credits
Members referred : 374


It's time to use PHP5!


« Reply #2 on: Jun 03, 2007, 10:53:28 PM »

i see, try this

RewriteEngine on
RewriteCond %{HTTP_HOST} ^freebiesociety\.com$
RewriteRule (.*) http://www.freebiesociety.com/ Visit through proxy$1 [R=301,L]


Last blog : 4th of July Lottery from TemplateMonster.com
Community Supporter ?
World Wide Whale
***
Gender: Male
Posts: 159
1042 credits
Members referred : 1



« Reply #3 on: Jun 03, 2007, 11:13:43 PM »

Thanks Olaf, but this work only for the main page...
I want for a subpage like   /forums
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6280
38506 credits
Members referred : 374


It's time to use PHP5!


« Reply #4 on: Jun 03, 2007, 11:31:25 PM »

Thanks Olaf, but this work only for the main page...
I want for a subpage like   /forums

http_host is only the domain name (plus the www).

I use the same rule and it works for all files, do you used exactly my rule?


Last blog : 4th of July Lottery from TemplateMonster.com
Community Supporter ?
World Wide Whale
***
Gender: Male
Posts: 159
1042 credits
Members referred : 1



« Reply #5 on: Jun 03, 2007, 11:49:27 PM »

So you mean to try this :

RewriteEngine on
RewriteCond %{HTTP_HOST} ^freebiesociety/forums\.com$
RewriteRule (.*) http://www.freebiesociety.com/forums/ Visit through proxy $1 [R=301,L]

?
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6280
38506 credits
Members referred : 374


It's time to use PHP5!


« Reply #6 on: Jun 03, 2007, 11:58:46 PM »

RewriteEngine on
RewriteCond %{HTTP_HOST} ^freebiesociet\.com$
rewriteCond %{REQUEST_URI} ^/forums
RewriteRule (.*) http://www.freebiesociety.com/ Visit through proxy$1 [R=301,L]

thats should work, (still don't understand what you're trying Smiley)


Last blog : 4th of July Lottery from TemplateMonster.com
Community Supporter ?
World Wide Whale
***
Gender: Male
Posts: 159
1042 credits
Members referred : 1



« Reply #7 on: Jun 04, 2007, 12:11:28 AM »

Me too Olaf...
I am trying again and again but nothing happened...

I am trying this domain :

http://freebiesociety.com/forums Visit through proxy  become
http://www.freebiesociety.com Visit through proxy
« Last Edit: Jun 04, 2007, 12:14:00 AM by maverick »
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6280
38506 credits
Members referred : 374


It's time to use PHP5!


« Reply #8 on: Jun 04, 2007, 12:36:53 AM »

maybe your server?

this works fine for me:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^finalwebsites\.com$ [NC]
RewriteRule (.*) http://www.finalwebsites.com/ Visit through proxy$1 [R=301,L]

try http://finalwebsites.com/tutorials/php_ajax_contact_form.php Visit through proxy (note the missing www)


Last blog : 4th of July Lottery from TemplateMonster.com
Community Supporter ?
World Wide Whale
***
Gender: Male
Posts: 159
1042 credits
Members referred : 1



« Reply #9 on: Jun 04, 2007, 12:40:25 AM »

You have right Olaf yours works good...
I don't know.
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6280
38506 credits
Members referred : 374


It's time to use PHP5!


« Reply #10 on: Jun 04, 2007, 12:53:59 AM »

You have right Olaf yours works good...
I don't know.

do you have more rules in your .htaccess file?


Last blog : 4th of July Lottery from TemplateMonster.com
Community Supporter ?
World Wide Whale
***
Gender: Male
Posts: 159
1042 credits
Members referred : 1



« Reply #11 on: Jun 04, 2007, 01:05:01 AM »

My access file have these lines..

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^freebiesociety\.com$
rewriteCond %{REQUEST_URI} ^/forums
RewriteRule (.*)http://www.freebiesociety.com/ $1[R=301,L]
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6280
38506 credits
Members referred : 374


It's time to use PHP5!


« Reply #12 on: Jun 04, 2007, 01:15:07 AM »

check here the syntax

RewriteRule (.*) http://www.freebiesociety.com/ Visit through proxy$1 [R=301,L]

the space are looking better this way (remove the second condition)


Last blog : 4th of July Lottery from TemplateMonster.com
Community Supporter ?
World Wide Whale
***
Gender: Male
Posts: 159
1042 credits
Members referred : 1



« Reply #13 on: Jun 04, 2007, 01:28:39 AM »

$%@^$#$%&#

I don't believe it works!!

Where is your donate button Olaf?
Community Supporter ?
World Wide Whale
***
Gender: Male
Posts: 159
1042 credits
Members referred : 1



« Reply #14 on: Jun 04, 2007, 01:45:18 AM »

Oopps something happened again....

Internal Server Error!

Good...I will start to cry...
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6280
38506 credits
Members referred : 374


It's time to use PHP5!


« Reply #15 on: Jun 04, 2007, 02:09:55 AM »

$%@^$#$%&#

I don't believe it works!!

Where is your donate button Olaf?

http://www.finalwebsites.com/snippets.php?id=10 Visit through proxy

Cheesy


Last blog : 4th of July Lottery from TemplateMonster.com
Community Supporter ?
World Wide Whale
***
Gender: Male
Posts: 159
1042 credits
Members referred : 1



« Reply #16 on: Jun 04, 2007, 02:40:34 AM »

Today is my favorite day!!

Accounts with limited access may not send money.

I have to sent a fax to paypal with my identity...

I will not forget you Olaf Smiley
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6280
38506 credits
Members referred : 374


It's time to use PHP5!


« Reply #17 on: Jun 04, 2007, 10:22:58 AM »

Today is my favorite day!!

Accounts with limited access may not send money.

I have to sent a fax to paypal with my identity...

I will not forget you Olaf Smiley

don't worry you don't need to donate (btw do you know my new proxy bidding directory)Smiley


Last blog : 4th of July Lottery from TemplateMonster.com
Community Supporter ?
World Wide Whale
***
Gender: Male
Posts: 159
1042 credits
Members referred : 1



« Reply #18 on: Jun 04, 2007, 03:39:07 PM »

Which one?
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6280
38506 credits
Members referred : 374


It's time to use PHP5!


« Reply #19 on: Jun 04, 2007, 04:54:03 PM »



Last blog : 4th of July Lottery from TemplateMonster.com
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=6703
Tags : www Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] Print 
Webdigity Webmaster Forums  >  Web hosting talk  >  Configuring your server  >  Apache web server
Topic: www and without www...
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Jul 25, 2008, 12:02:42 AM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 35.717
Total Topics: 7.379
Total Members: 3.711
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: Asimina

33 Guests, 5 Users online :

11 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2008 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.