Forum Moderators: phranque

Message Too Old, No Replies

Redirect to same domain

         

fcxsebs

7:44 pm on Sep 29, 2005 (gmt 0)

10+ Year Member



Here's the scenario:

www.mydomain.com
mydomain.com
differentnamesamesite.com
mydomain.com/section/blah.php
differentnamesamesite.com/section/blah.php

I would like that all of the above always goes to:

www.mydomain.com
or
www.mydomain.com/section/blah.php (Wheter or not they go deeper in my site?)

Right now I have some rewrite rule, here's what my .htaccess looks like:


RewriteEngine on
RewriteBase /

RewriteRule images/screenshots/(.+) watermark.php?src=/images/screenshots/$1

Thanks for your help.

jdMorgan

1:26 am on Sep 30, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



fcxsebs,

Welcome to WebmasterWorld!

There's an example of the code to do this in message 2 of this recent thread [webmasterworld.com].

Jim

fcxsebs

11:42 am on Sep 30, 2005 (gmt 0)

10+ Year Member



Awesome,

Works like a charm.

Thanks for the tips and for the welcome.

You know your stuff ;)