Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 02-02-2006, 07:26 PM   #1
Registered: Oct 2003
Posts: 27

Rep: Reputation: 15

i've searched google and have found plenty of examples, but i can't seen to get this to work.

i'd like to forward any requests sent to


basically i want to rewrite any requests to:

etc etc

basically what i have is a bunch of people linking to galleries on one server. i want to move the galleries to a new server but do not want to break everyone's links. i also want the new url hidden so i figured mod_rewrite would be perfect.

here is what i have tried. i have placed the following in to an .htaccess file in the /galleries directory on

#this only works if i call
#if i call it does not work
RewriteEngine on
RewriteRule ^$ [L]

#this doesn't do a thing
RewriteEngine on
RewriteRule ^/galleries(.*)$ [L]

comments/suggestions would be appreciated.


Last edited by mr_dizzle; 02-02-2006 at 07:28 PM.
Old 02-02-2006, 07:32 PM   #2
Registered: Oct 2003
Posts: 27

Original Poster
Rep: Reputation: 15
a full example....

people have links to:

the whole /galleries directory is going to be moved to a new domain on a new server:

people linking to anything in will still have valid links although the content is really being pulled from that new domain.

keeping the new domain url hidden is important.



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

Similar Threads
Thread Thread Starter Forum Replies Last Post
mod_rewrite questions? cadkins Linux - Software 0 03-25-2005 11:02 AM
mod_rewrite help needed j-ray Linux - General 1 03-09-2005 04:41 PM
Apache Mod_rewrite help! soulsniper Linux - Software 0 01-16-2005 05:23 PM
Apache:mod_rewrite MadMikie Linux - Software 0 08-03-2004 07:33 AM
Apache and mod_rewrite notsoevil Linux - General 0 01-23-2002 01:39 PM

All times are GMT -5. The time now is 06:11 AM.

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