#1  
Old 25th July 2006, 21:35
Ben Ben is offline
Moderator
 
Join Date: Jul 2006
Posts: 830
Thanks: 5
Thanked 41 Times in 36 Posts
Default Other Way of redirecting

Due to the fact I forgot having a Co-Domain in a WEB, did not want to create one but anyway wanted to redirect the web, i remembered the apache command redirect.

So if you desire to redirect the web to any URL, you cann add the apache directive

Quote:
redirect permanent / http://ww.mydomain.com
Docs: http://httpd.apache.org/docs/2.0/mod....html#redirect

hth Ben
Reply With Quote
  #2  
Old 26th July 2006, 11:24
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,853
Thanks: 781
Thanked 1,558 Times in 1,477 Posts
Default

To anybody interested in the "art" of redirecting, take a look at this nice article: http://www.stevenhargrove.com/redirect-web-pages/
__________________
Falko
--
Follow me on:
Reply With Quote
  #3  
Old 12th December 2006, 02:54
wr19026 wr19026 is offline
Senior Member
 
Join Date: Jan 2006
Posts: 170
Thanks: 7
Thanked 0 Times in 0 Posts
Default

So if I want to use htaccess to do the redirect all I have to do is add Redirect 301 /old/old.html http://www.you.com/new.html in an .htaccess file. Nice!

Would this mean that I need to create the .htaccess file in /var/www/web1 with the following statement?
Redirect 301 /var/www/web1/web/old.html http://www.mydomain.dom/new.html
Reply With Quote
  #4  
Old 13th December 2006, 14:15
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,853
Thanks: 781
Thanked 1,558 Times in 1,477 Posts
Default

Quote:
Originally Posted by wr19026
Would this mean that I need to create the .htaccess file in /var/www/web1 with the following statement?
It's /var/www/web1/web or any subdirectory of it.
__________________
Falko
--
Follow me on:
Reply With Quote
Reply

Bookmarks

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SSL site speaking plain non-SSL on port 443 and redirecting to /apache2-default/ samrolken Technical 1 18th July 2006 13:42
redirecting 80 to 443 gabriele Server Operation 1 16th May 2006 17:26
Redirecting a sub-domain (dummy question) Hellbound General 1 17th September 2005 03:23
Redirecting to another webserver derilium HOWTO-Related Questions 5 15th September 2005 16:00


All times are GMT +2. The time now is 21:25.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Sponsored Links: Unified Communications: Thoughts, Strategies and Predictions
Join the discussion.
www.seamlessenterprise.com

IP Convergence
Integrate your wireless and wireline networks.
Learn how from the experts at Sprint.
www.seamlessenterprise.com

Wireless & Wireline Integration
Thoughts, strategies and solutions: join the discussion
www.seamlessenterprise.com

Unified Communications 2009
Join the Discussion. Now.
www.seamlessenterprise.com

Red Hat Virtual Experience - a free virtual event. Dec. 9th