![]() |
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? |
your host should do this for you
|
You can edit httpd.conf or you could just put this in .htaccess file in your public_html for the domain.
Code:
RewriteEngine On |
yup BoyAlley is right. that'll git'er dun
|
modrewrite is so 90s
|
|
BoyAlley is right
|
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> |
can I buy x.com from you for $2?
|
Quote:
|
you are damn leet now x.com...
|
Quote:
|
Quote:
|
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. |
Quote:
try it out http://eatmyshorts.net/ :thumbsup |
Quote:
|
Why not an "A" record?
|
I meant a "C"
|
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. |
I should have reread the post :) I also took it to be the same domain?
|
Quote:
Quote:
|
| All times are GMT -7. The time now is 06:19 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123