28, May 2012

www and without www... - webmaster forum

 
Webdigity webmaster forums
[ 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
Instabuck - The easy way to sell digital products online

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



« on: Jun 03, 2007, 09: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

I try that but nothing happened... :

RewriteEngine on
RewriteCond %{HTTP_HOST} ^freebiesociety/forums\.com
RewriteRule ^(.*)$ http://www.freebiesociety.com/forums/$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: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: Jun 03, 2007, 09:51:35 pm »

check the server variable for http_host

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


It's time to use PHP5!


« Reply #2 on: Jun 03, 2007, 09:53:28 pm »

i see, try this

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

Community Supporter ?
World Wide Whale
***
Gender: Male
Posts: 160
1052 credits
Members referred : 1



« Reply #3 on: Jun 03, 2007, 10: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: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #4 on: Jun 03, 2007, 10: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?

Community Supporter ?
World Wide Whale
***
Gender: Male
Posts: 160
1052 credits
Members referred : 1



« Reply #5 on: Jun 03, 2007, 10:49:27 pm »

So you mean to try this :

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

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


It's time to use PHP5!


« Reply #6 on: Jun 03, 2007, 10:58:46 pm »

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

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

Community Supporter ?
World Wide Whale
***
Gender: Male
Posts: 160
1052 credits
Members referred : 1



« Reply #7 on: Jun 03, 2007, 11:11:28 pm »

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

I am trying this domain :

http://freebiesociety.com/forums  become
http://www.freebiesociety.com
« Last Edit: Jun 03, 2007, 11:14:00 pm by maverick »
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #8 on: Jun 03, 2007, 11:36:53 pm »

maybe your server?

this works fine for me:

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

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

Community Supporter ?
World Wide Whale
***
Gender: Male
Posts: 160
1052 credits
Members referred : 1



« Reply #9 on: Jun 03, 2007, 11:40:25 pm »

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


It's time to use PHP5!


« Reply #10 on: Jun 03, 2007, 11:53:59 pm »

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

do you have more rules in your .htaccess file?

Community Supporter ?
World Wide Whale
***
Gender: Male
Posts: 160
1052 credits
Members referred : 1



« Reply #11 on: Jun 04, 2007, 12: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: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


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

check here the syntax

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

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

Community Supporter ?
World Wide Whale
***
Gender: Male
Posts: 160
1052 credits
Members referred : 1



« Reply #13 on: Jun 04, 2007, 12:28:39 am »

$%@^$#$%&#

I don't believe it works!!

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



« Reply #14 on: Jun 04, 2007, 12: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: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #15 on: Jun 04, 2007, 01:09:55 am »

$%@^$#$%&#

I don't believe it works!!

Where is your donate button Olaf?

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

Cheesy

Community Supporter ?
World Wide Whale
***
Gender: Male
Posts: 160
1052 credits
Members referred : 1



« Reply #16 on: Jun 04, 2007, 01: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: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #17 on: Jun 04, 2007, 09: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

Community Supporter ?
World Wide Whale
***
Gender: Male
Posts: 160
1052 credits
Members referred : 1



« Reply #18 on: Jun 04, 2007, 02:39:07 pm »

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


It's time to use PHP5!


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


Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=6703
Tags : www Bookmark this thread : Digg Del.icio.us Dzone more....

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?
May 28, 2012, 07:47:39 pm





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!






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