Jump to content

URL Rewrite: How to do this?


Recommended Posts

Posted

So I finally managed to settle with a host recently with my site under its new domain name for my forum! Whoo.

Question


1. I know in .htaccess you can set URL Forwarding or something so that the old domain(s) redirect properly back to the sites's new URL

How do you do this? This will be for 5 previous used domains we had(I know a lot :P)


2. We've had quite a few domain names. Is it possible to set up a URL rewrite on one of our older domains IF someone else owns that url or it has gone into the registrar's collection?

I doubt that ^above but I figured it didn't hurt to ask.

Posted

RewriteCond %{HTTP_HOST} ^olddomain\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.olddomain\.com$
RewriteRule ^/?$ "http\:\/\/www\.newdomain\.com\/" [R=301,L]

olddomain/newdomain replace with your domain you need do that each domain.

2. We've had quite a few domain names. Is it possible to set up a URL rewrite on one of our older domains IF someone else owns that url or it has gone into the registrar's collection?

nope

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...