.Htaccess question, How to do this?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AtlantisCash
    Confirmed User
    • Dec 2005
    • 3179

    #1

    .Htaccess question, How to do this?

    What i wanna do is replaceing/redirecting anything/any link starts with http:// to http://ww.exampleurl.com for entire site, including all folders and sub folders.

    So how may i do this?
    Kız telefonları
    |
    Telefonda seks sohbet
  • Traxman
    Registered User
    • Dec 2010
    • 58

    #2
    I assume you are moving permantly from one domain to another.
    You need to issue a Movied Permantly http error code of 301 as well then.

    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L]

    Can't verify it since i'm not running apache anymore.

    This is for apache, and i'm assuming you are running it.

    Either paste that in your conf or in a .htaccess file, make sure you can use rewriterules.
    Last edited by Traxman; 01-24-2011, 04:10 AM. Reason: Assuming..
    Just because I know a lot of things, dont mean I know everything

    Comment

    • jonnydoe
      Confirmed User
      • Aug 2006
      • 543

      #3
      Where do you want to redirect to? You need to be more specific on what you are trying to accomplish.
      Want a Sponsor that really PAYS?!?!?!?!


      I&C#Q 3-0/2 7+3.3 0=5|2

      Comment

      • pumpercloggs
        Confirmed User
        • Mar 2007
        • 118

        #4
        .

        You should use a redirectpermanent statement within the virtualhost config of apache

        RedirectPermanent URL-path URL

        http://httpd.apache.org/docs/2.0/mod/mod_alias.html

        This is the most efficient way of doing it. Mod_rewrite is more resource intensive than mod_alias
        Cheap Bandwidth only 33cents/mbps

        Comment

        • Traxman
          Registered User
          • Dec 2010
          • 58

          #5
          RedirectPermanent (.*) http://exampleurl.com$1

          The $1 will include starting '/'

          Yea, rewrite is always more demanding thanks for updating me on the alias thing.. always more to learn ;)
          Just because I know a lot of things, dont mean I know everything

          Comment

          • AtlantisCash
            Confirmed User
            • Dec 2005
            • 3179

            #6
            What i want to do is, There are some backed up html pages with old affiliate links and i wanna replace them with the new ones, so thats why i look for a comman like;

            (redirect anything starts with http to htttp://www.newaffiliatelink.com)
            Kız telefonları
            |
            Telefonda seks sohbet

            Comment

            Working...