LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-11-2003, 10:18 PM   #1
vrillusions
Member
 
Registered: Feb 2003
Location: Ohio, USA
Distribution: Ubuntu, Debian, CentOS
Posts: 99

Rep: Reputation: 25
Mod_Rewrite help in Apace 1.3...


First off the web server is still in the 1.3's somewhere, not sure where, just that it's not 2.0

I have it setup so that http://gallery.vrillusions.com/ goes to http://www.vrillusions.com/ That's setup in DNS and no problems. What I want to do is have it so that if someone goes to http://gallery.vrillusions.com/ it redirects them to http://www.vrillusions.com/gallery/ while keeping gallery.vrillusions.com in the address bar. This seemed like a prime candidate for mod_rewrite and I thought it would be easy, but I've spent the last two hours on this and not having much luck. Here is what I have so far:
Code:
#gallery.vrillusions.com mirror
RewriteCond %{HTTP_HOST} ^.*gallery.vrillusions.com.*$ [NC]
RewriteRule ^.*gallery\.vrillusions\.com/(.*)$ http://www.vrillusions.com/gallery/$1
When I go to that page, I just get the main vrillusions.com page. BTW, the RewriteEngine On statement is further up the .htaccess file since I also have some anti-image-stealing stuff in there. Any help would be appreciated. Thanks.
 
  


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
Default Gnome doesnt have Apace or Shorewall icon... normal? flecksia Linux - Software 2 03-27-2005 02:37 AM
apace proxy problem hariiyer Linux - Networking 1 12-13-2004 02:26 AM
installation of Apace web server CLinuxSandy Linux - Newbie 1 04-21-2004 11:52 PM
tried installing apache2 and broke apace? cgchris99 Linux - Software 1 04-19-2004 12:34 AM
!!! Preparing Secure Apace !!! plz help ehpserver Linux - Networking 1 10-08-2003 06:42 PM


All times are GMT -5. The time now is 07:20 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration