Need help redirecting x.com to www.x.com.......

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • madawgz
    8.8.8.8
    • Mar 2006
    • 30509

    #1

    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.
  • BJ
    Confirmed User
    • Mar 2002
    • 5590

    #2
    your host should do this for you

    Comment

    • BoyAlley
      So Fucking Gay
      • Nov 2004
      • 19714

      #3
      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]

      Comment

      • JD
        Too lazy to set a custom title
        • Sep 2003
        • 22651

        #4
        yup BoyAlley is right. that'll git'er dun

        Comment

        • fris
          I have to go potty
          • Aug 2002
          • 55737

          #5
          modrewrite is so 90s
          Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

          My Latest Theme

          Comment

          • tical
            Confirmed User
            • Feb 2002
            • 6504

            #6
            in your httpd.conf find the virtualhost entry and add (under ServerName)

            ServerAlias www.x.com
            112.020.756

            Comment

            • CIVMatt
              Amateur Pimpin
              • Aug 2004
              • 13075

              #7
              BoyAlley is right
              Make easy money with Webcams

              Comment

              • clearcut
                Registered User
                • May 2007
                • 51

                #8
                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>
                Jay Adams
                www.boys4porn.com

                Comment

                • Jace
                  FBOP Class Of 2013
                  • Jan 2004
                  • 35562

                  #9
                  can I buy x.com from you for $2?

                  Comment

                  • Goodings Media
                    Confirmed User
                    • Apr 2007
                    • 1987

                    #10
                    Originally posted by Fris
                    modrewrite is so 90s
                    whats wrong with it?
                    ICQ: 446-568-913 Email: liam||goodingsmedia.com msn: [email protected]

                    Comment

                    • starpimps
                      Confirmed User
                      • Sep 2006
                      • 6954

                      #11
                      you are damn leet now x.com...
                      Teen Porn Models / Solo Girls

                      Comment

                      • thehose
                        Registered User
                        • Jun 2007
                        • 87

                        #12
                        Originally posted by Fris
                        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

                        Comment

                        • fluffygrrl
                          So Fucking Banned
                          • May 2006
                          • 2187

                          #13
                          Originally posted by Fris
                          modrewrite is so 90s
                          Being around for 20 years means something's good in the linux world.

                          Comment

                          • Superterrorizer
                            Confirmed User
                            • Sep 2003
                            • 509

                            #14
                            Originally posted by fluffygrrl
                            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.

                            Comment

                            • madawgz
                              8.8.8.8
                              • Mar 2006
                              • 30509

                              #15
                              Originally posted by BoyAlley
                              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.

                              Comment

                              • BoyAlley
                                So Fucking Gay
                                • Nov 2004
                                • 19714

                                #16
                                Originally posted by madawgz
                                thanks, that worked

                                try it out http://eatmyshorts.net/
                                Hawt........

                                Comment

                                • HighEnergy
                                  So Fucking Banned
                                  • Apr 2007
                                  • 806

                                  #17
                                  Why not an "A" record?

                                  Comment

                                  • HighEnergy
                                    So Fucking Banned
                                    • Apr 2007
                                    • 806

                                    #18
                                    I meant a "C"

                                    Comment

                                    • KrisKross
                                      Confirmed User
                                      • Jan 2006
                                      • 5025

                                      #19
                                      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.

                                      Comment

                                      • HighEnergy
                                        So Fucking Banned
                                        • Apr 2007
                                        • 806

                                        #20
                                        I should have reread the post I also took it to be the same domain?

                                        Comment

                                        • Vick!
                                          Confirmed User
                                          • Nov 2005
                                          • 6882

                                          #21
                                          Originally posted by HighEnergy
                                          Why not an "A" record?
                                          Originally posted by HighEnergy
                                          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.
                                          Affordable Quality Web Hosting

                                          Comment

                                          Working...