|
|
|
||||
|
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. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
8.8.8.8
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. |
|
|
|
|
|
#2 |
|
Confirmed User
Join Date: Mar 2002
Location: asia
Posts: 5,590
|
your host should do this for you
|
|
|
|
|
|
#3 |
|
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]
|
|
|
|
|
|
#4 |
|
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
|
|
|
|
|
|
#7 |
|
Amateur Pimpin
Industry Role:
Join Date: Aug 2004
Location: Orlando, FL
Posts: 13,075
|
BoyAlley is right
__________________
Make easy money with Webcams |
|
|
|
|
|
#8 |
|
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> |
|
|
|
|
|
#9 |
|
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?
|
|
|
|
|
|
#10 |
|
Confirmed User
Join Date: Apr 2007
Location: UK
Posts: 1,987
|
__________________
ICQ: 446-568-913 Email: liam||goodingsmedia.com msn: [email protected]
|
|
|
|
|
|
#11 |
|
Confirmed User
Join Date: Sep 2006
Location: internets
Posts: 6,954
|
you are damn leet now x.com...
__________________
Teen Porn Models / Solo Girls |
|
|
|
|
|
#12 |
|
Registered User
Join Date: Jun 2007
Location: the internets
Posts: 87
|
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
|
|
|
|
|
|
#13 |
|
So Fucking Banned
Join Date: May 2006
Posts: 2,187
|
|
|
|
|
|
|
#14 | |
|
Confirmed User
Join Date: Sep 2003
Posts: 509
|
Quote:
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. |
|
|
|
|
|
|
#15 | |
|
8.8.8.8
Industry Role:
Join Date: Mar 2006
Location: Noordermarkt
Posts: 30,509
|
Quote:
try it out http://eatmyshorts.net/
__________________
TAEMDLRMSKRJIXMRLSMRJ. |
|
|
|
|
|
|
#16 | |
|
So Fucking Gay
Join Date: Nov 2004
Posts: 19,714
|
Quote:
|
|
|
|
|
|
|
#17 |
|
So Fucking Banned
Join Date: Apr 2007
Posts: 806
|
Why not an "A" record?
|
|
|
|
|
|
#18 |
|
So Fucking Banned
Join Date: Apr 2007
Posts: 806
|
I meant a "C"
|
|
|
|
|
|
#19 |
|
Confirmed User
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.
__________________
|
|
|
|
|
|
#20 |
|
So Fucking Banned
Join Date: Apr 2007
Posts: 806
|
I should have reread the post
|
|
|
|
|
|
#21 |
|
Confirmed User
Industry Role:
Join Date: Nov 2005
Location: 20 00'24.00" N, 75 09'00.00 W
Posts: 6,882
|
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.
|
|
|
|