LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-16-2011, 06:10 AM   #1
chandranjoy
LQ Newbie
 
Registered: Jun 2010
Posts: 8

Rep: Reputation: 0
Redirect with htaccess


Hi,

I would like to use htaccess 301 redirect with URL hiding.
Ex:
when browse the website 'abc.com' it should show the contents of the page 'xyz.com/start/index.html' but in addressbar should show the domain 'abc.com'. I know it works with html URL frame rewrite. But my question is it possible to done this with htaccess?

Thanks,
Jay
 
Old 02-16-2011, 07:40 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,159
Blog Entries: 1

Rep: Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021
Hi,

I assume you mean to do this on a apache webserver. You'll need to enable the apache mod_proxy along with mod_rewrite and then use:
Code:
RewriteEngine On
RewriteRule (.*) http://xyz.com/start/index.html [P]
Regards
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
.htaccess to redirect all requests to another URL agflem Linux - Newbie 1 04-16-2010 10:38 AM
Apache htaccess redirect Jorkim Kustafin Linux - Server 2 07-23-2009 12:32 PM
Apache2 .htaccess redirect problem raven Linux - Networking 0 08-06-2007 02:35 AM
htaccess 'redirect permanent' failing mikeindo Linux - Networking 0 07-07-2005 01:05 AM
Htaccess with a redirect Diode Linux - Networking 0 10-28-2003 06:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration