Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 07-05-2007, 07:00 PM   #1
madawgz
8.8.8.8
 
madawgz's Avatar
 
Industry Role:
Join Date: Mar 2006
Location: Noordermarkt
Posts: 30,509
Need help redirecting x.com to www.x.com.......

on a bsd box, does it have to be changed in the httpd.conf?

any ideas how i can do this?
__________________
TAEMDLRMSKRJIXMRLSMRJ.
madawgz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-05-2007, 07:01 PM   #2
BJ
Confirmed User
 
BJ's Avatar
 
Join Date: Mar 2002
Location: asia
Posts: 5,590
your host should do this for you
BJ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-05-2007, 07:04 PM   #3
BoyAlley
So Fucking Gay
 
Join Date: Nov 2004
Posts: 19,714
You can edit httpd.conf or you could just put this in .htaccess file in your public_html for the domain.

Code:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www.x.com$ [NC]
RewriteRule ^(.*)$ http://www.x.com/$1 [L,R=301]
BoyAlley is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-05-2007, 07:05 PM   #4
JD
Too lazy to set a custom title
 
Industry Role:
Join Date: Sep 2003
Posts: 22,651
yup BoyAlley is right. that'll git'er dun
JD is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-05-2007, 07:15 PM   #5
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,426
modrewrite is so 90s
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-05-2007, 07:16 PM   #6
tical
Confirmed User
 
Join Date: Feb 2002
Location: Las Vegas
Posts: 6,504
in your httpd.conf find the virtualhost entry and add (under ServerName)

ServerAlias www.x.com
__________________
112.020.756
tical is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-05-2007, 07:22 PM   #7
CIVMatt
Amateur Pimpin
 
CIVMatt's Avatar
 
Industry Role:
Join Date: Aug 2004
Location: Orlando, FL
Posts: 13,075
BoyAlley is right
__________________
Make easy money with Webcams
CIVMatt is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-05-2007, 07:33 PM   #8
clearcut
Registered User
 
Join Date: May 2007
Location: Tampa, FL
Posts: 51
catch all

"Catch all subdomains" in apache can help depending on your setup


<VirtualHost xx.xxx.xxx.xx:80>
ServerAlias *.mydomain.com
RedirectPermanent / (URL address blocked: See forum rules)
</VirtualHost>
clearcut is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-05-2007, 07:57 PM   #9
Jace
FBOP Class Of 2013
 
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
can I buy x.com from you for $2?
Jace is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-05-2007, 08:01 PM   #10
Goodings Media
Confirmed User
 
Goodings Media's Avatar
 
Join Date: Apr 2007
Location: UK
Posts: 1,987
Quote:
Originally Posted by Fris View Post
modrewrite is so 90s
whats wrong with it?
__________________
ICQ: 446-568-913 Email: liam||goodingsmedia.com msn: [email protected]
Goodings Media is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-05-2007, 08:06 PM   #11
starpimps
Confirmed User
 
Join Date: Sep 2006
Location: internets
Posts: 6,954
you are damn leet now x.com...
__________________
Teen Porn Models / Solo Girls
starpimps is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-05-2007, 08:08 PM   #12
thehose
Registered User
 
Join Date: Jun 2007
Location: the internets
Posts: 87
Quote:
Originally Posted by Fris View Post
modrewrite is so 90s
well mr. knowitall... you still hafta use it in little things like... say, Wordpress blogs. Oh the wonders of SEO!
__________________
It ain't Easy Being Greasy m(>_<)m
thehose is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-05-2007, 08:36 PM   #13
fluffygrrl
So Fucking Banned
 
Join Date: May 2006
Posts: 2,187
Quote:
Originally Posted by Fris View Post
modrewrite is so 90s
Being around for 20 years means something's good in the linux world.
fluffygrrl is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-05-2007, 08:50 PM   #14
Superterrorizer
Confirmed User
 
Join Date: Sep 2003
Posts: 509
Quote:
Originally Posted by fluffygrrl View Post
Being around for 20 years means something's good in the linux world.
What's been around for 20 years? Apache and Linux are both in their teens.

And to answer the guys question, use ServerAlias, not mod_rewrite. Doing it the mod_rewrite way is a waste of cpu cycles. You'll also be better off using www.x.com as the servername and x.com as the alias.
Superterrorizer is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-05-2007, 09:01 PM   #15
madawgz
8.8.8.8
 
madawgz's Avatar
 
Industry Role:
Join Date: Mar 2006
Location: Noordermarkt
Posts: 30,509
Quote:
Originally Posted by BoyAlley View Post
You can edit httpd.conf or you could just put this in .htaccess file in your public_html for the domain.

Code:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www.x.com$ [NC]
RewriteRule ^(.*)$ http://www.x.com/$1 [L,R=301]
thanks, that worked

try it out http://eatmyshorts.net/
__________________
TAEMDLRMSKRJIXMRLSMRJ.
madawgz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-05-2007, 09:16 PM   #16
BoyAlley
So Fucking Gay
 
Join Date: Nov 2004
Posts: 19,714
Quote:
Originally Posted by madawgz View Post
thanks, that worked

try it out http://eatmyshorts.net/
Hawt........
BoyAlley is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-05-2007, 09:30 PM   #17
HighEnergy
So Fucking Banned
 
Join Date: Apr 2007
Posts: 806
Why not an "A" record?
HighEnergy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-05-2007, 09:35 PM   #18
HighEnergy
So Fucking Banned
 
Join Date: Apr 2007
Posts: 806
I meant a "C"
HighEnergy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-05-2007, 09:41 PM   #19
KrisKross
Confirmed User
 
KrisKross's Avatar
 
Join Date: Jan 2006
Location: Canada
Posts: 5,025
No, you meant an A record. ;)

You could use a CNAME record, but an A record would be better. It wouldn't quite be a redirect, though.
__________________
KrisKross is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-05-2007, 09:47 PM   #20
HighEnergy
So Fucking Banned
 
Join Date: Apr 2007
Posts: 806
I should have reread the post I also took it to be the same domain?
HighEnergy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-05-2007, 09:48 PM   #21
Vick!
Confirmed User
 
Industry Role:
Join Date: Nov 2005
Location: 20 00'24.00" N, 75 09'00.00 W
Posts: 6,882
Quote:
Originally Posted by HighEnergy View Post
Why not an "A" record?
Quote:
Originally Posted by HighEnergy View Post
I meant a "C"
Mostly we do non-www to www. because we also wait to pass any possible link weight to www. as well. And for that we need 301 redirect, not just a redirect. And the code BoyAlley gave do the job well.
Vick! is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.