Go Back   vBulletin Setup > vBulletinSetup Information > vBulletin Questions


Please Register to get full access to the forums.
Post New Thread  Reply



#1   11-02-2007, 09:01 AM
loka will become famous soon enough Join Date: Jul 2007 Posts: 36
iTrader: (0)
rewrite mod ......!!!!???


hi:i want redirect my mydomain1.c o m to this url mydomain2.c o m/forum/blog when use redirect option in my host cp,when i type mydomain1.com]mydomain1.c o m in my browsers address bar its redirect to and show in address bar o m/forum/blog
but i want show mydomain1.c o m.
what can i do for this change ?i read about rewrite mod but i dont underestant it.i know that i must add some code to .htaccess....but i dont know this coad please help me!

Last edited by loka; 11-02-2007 at 09:08 AM..
Quote   |  



#2   11-02-2007, 10:09 AM
Michael Biddle is just really niceMichael Biddle is just really nice Join Date: Aug 2006 Posts: 1,656 Location: Anaheim, CA
iTrader: (0)
Re: rewrite mod ......!!!!???


well you cannot use both urls. you can use one that it redirects one url to another, but it keeps that url.
--------------------
Do NOT PM me for Support!
Michael Biddle / vBulletin Setup Staff
Check out our Newsletter for the latest vB and SEO news.
Are you looking for vBulletin work to be done on your forums ?
Would you like to Help Support vBulletin Setup.
Quote   |  



#3   11-02-2007, 10:10 AM
Michael Biddle is just really niceMichael Biddle is just really nice Join Date: Aug 2006 Posts: 1,656 Location: Anaheim, CA
iTrader: (0)
Re: rewrite mod ......!!!!???


Also, if you do have two domain names like that, it is horriable for SEO due to duplicated content.
--------------------
Do NOT PM me for Support!
Michael Biddle / vBulletin Setup Staff
Check out our Newsletter for the latest vB and SEO news.
Are you looking for vBulletin work to be done on your forums ?
Would you like to Help Support vBulletin Setup.
Quote   |  



#4   11-02-2007, 10:33 AM
Beerandfuel has a spectacular aura about Join Date: Aug 2007 Posts: 15 Location: Bozeman, Montana
iTrader: (0)
Re: rewrite mod ......!!!!???


RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?yourdomain1\.com [NC]
RewriteRule ^(.*) http://www.yourdomain2\.com/forum/blog/$1 [R=301,L]
--------------------
Tippmann A5 Operators Group

Last edited by Beerandfuel; 11-02-2007 at 10:42 AM.. Reason: Fixed for second domain.
Quote   |  



#5   11-02-2007, 10:35 AM
Michael Biddle is just really niceMichael Biddle is just really nice Join Date: Aug 2006 Posts: 1,656 Location: Anaheim, CA
iTrader: (0)
Re: rewrite mod ......!!!!???


thats still linking to the same domain name. not allowing two.
--------------------
Do NOT PM me for Support!
Michael Biddle / vBulletin Setup Staff
Check out our Newsletter for the latest vB and SEO news.
Are you looking for vBulletin work to be done on your forums ?
Would you like to Help Support vBulletin Setup.
Quote   |  



#6   11-02-2007, 10:43 AM
Beerandfuel has a spectacular aura about Join Date: Aug 2007 Posts: 15 Location: Bozeman, Montana
iTrader: (0)
Re: rewrite mod ......!!!!???


Opps, edited.

That's about as close as you can get. Unless both domains point to the same host.
--------------------
Tippmann A5 Operators Group

Last edited by Beerandfuel; 11-02-2007 at 10:46 AM..
Quote   |  



#7   11-02-2007, 02:51 PM
loka will become famous soon enough Join Date: Jul 2007 Posts: 36
iTrader: (0)
Re: rewrite mod ......!!!!???


thanks a lot for your response
i have a forum whit blog.i want use ondomain for blog and one domain for forum.
so i redirect on of my domain to blog directory but in address bar show blog adress no domain adress that i want use for blog
i am begner please if you have any code sye to me how use it to my forum
thanks in advance
Quote   |  



#8   11-02-2007, 03:30 PM
Beerandfuel has a spectacular aura about Join Date: Aug 2007 Posts: 15 Location: Bozeman, Montana
iTrader: (0)
Re: rewrite mod ......!!!!???


Quote:
Originally Posted by loka View Post
thanks a lot for your response
so i redirect on of my domain to blog directory but in address bar show blog adress no domain adress that i want use for blog
Very difficult to understand. Could you provide a better example?
--------------------
Tippmann A5 Operators Group
Quote   |  



#9   11-02-2007, 04:08 PM
loka will become famous soon enough Join Date: Jul 2007 Posts: 36
iTrader: (0)
Re: rewrite mod ......!!!!???


Sure
it is my first domain that i use for my forum
domain 1.c o m
so my blog address is
domain 1. c o m/forum/blog.
i buy another domain that i want use it for my blog whth above address.
i redirect secund domain to this address domain 1. c o m/forum/blog.
now when i type secound domain.c o m in address bar my browser go to domain 1. c o m/forum/blog.
and change addreess bar from secund domain.c o m to domain 1. c o m/forum/blog...........i dont want this
i want dont chang in address bar when redirect
Quote   |  



#10   11-02-2007, 05:09 PM
Beerandfuel has a spectacular aura about Join Date: Aug 2007 Posts: 15 Location: Bozeman, Montana
iTrader: (0)
Re: rewrite mod ......!!!!???


I will give you an example of what I do on my website because I think that is what you want to do.

I have a forum in the webroot and a photopost directory.

/webroot/

/webroot/photopost

www . domain1 . com -> /webroot/

www . domain2 . com -> /webroot/photopost

Both of my domain names point to the same IP address on the same webserver via DNS.

The webserver uses linux and apache and let's me use a .htaccess file in the webroot to perform redirects.

The contents of my .htaccess file are as follows:

RewriteEngine On

RewriteCond %{HTTP_HOST} ^(www\.)?domain2\.com [NC]
RewriteRule ^(.*) photopost/$1


When a user types www . domain2 . com they are directed to the content in the /webroot/photopost directory but the URL bar in the web browser only shows www . domain2 . com

Does that help?
--------------------
Tippmann A5 Operators Group

Last edited by Beerandfuel; 11-02-2007 at 05:16 PM.. Reason: Why can't you type a URL into this forum?
Quote   |  
Post New Thread  Reply
vBulletin Setup > vBulletinSetup Information > vBulletin Questions


Thread Tools
Display Modes

 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with a rewrite Lordo vBulletin SEO Tips and SEO Questions 2 07-07-2007 05:41 PM
Zoints SEO Custom Rewrite Rules sunilvarma Feedback and Suggestions 15 04-14-2007 12:39 PM


All times are GMT -6. The time now is 03:07 AM.

vBulletin Setup, vBulletin Setup Forums, vBulletin Services, vBulletin Blogs, vBulletin SEO, vBulletin Questions
vBulletin Skins, Styles, Templates, vBulletin Monetization, Blogs, vBulletin Link Directory,Quality Link Directory