LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 08-02-2007, 08:19 AM   #1
mesh2005
Member
 
Registered: Sep 2005
Location: Ägypten
Distribution: Ubuntu 5.10
Posts: 155

Rep: Reputation: 30
Unhappy Apache rewriterule


I have been having a trouble adding the following rule:
RewriteRule ^/dir/.*$ http://mydomain.com/index.html
full path to directory dir is: /var/www/dir
full path to index: /var/www/index.html

I want to redirect all requests of any pages under "dir" to index.html but it seems not to be working. Please help.

//mod note. not a networking question. moved to Linux - Server.

Last edited by acid_kewpie; 08-03-2007 at 01:44 AM.
 
Old 08-03-2007, 02:23 AM   #2
satnam888
LQ Newbie
 
Registered: Jul 2007
Location: Coventry, UK
Distribution: Red Hat AS 2.1
Posts: 11

Rep: Reputation: 0
Try:

RewriteRule ^/dir/.*$ /index.html

 
  


Reply



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
cleaning up apache RewriteRule entries deesto Linux - Server 0 12-12-2006 03:36 PM
Help w/ Apache htaccess (RewriteRule) bhuwan Programming 1 03-16-2006 06:06 AM
Apache ReWriteRule, ProxyPassReverse, and Allow From directives yakkerty Linux - Networking 3 06-24-2004 01:21 PM
Apache RewriteRule is driving me nuts ijsman77 Linux - Software 3 04-07-2004 02:25 AM
apache benchmarks (apache v13 / apache v20) ; large differences between benchmarking markus1982 Linux - Software 0 02-08-2003 10:53 AM

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

All times are GMT -5. The time now is 07:07 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
Open Source Consulting | Domain Registration