Results 1 to 2 of 2
  1. #1

    Apache Rewrite help needed please..

    Hey Guys,

    Our application uses rewrite rules in our PHP application and our developer added this rewrite rule to our Apache VHosts file:

    RewriteRule ^/([a-zA-Z0-9-_,]+)/?$ /index.php?a=$1

    Basically this breaks anything that is running after our normal domain name. (www.test.com)
    I am trying to get my Wordpress blog up and running at www.test.com/blog but this redirect causes it to not work.

    Is it possible to create an exception Rewrite rule which will ignore this rule for /blog?

    If I disable this first line the blog works great but our tabs in our app stop working.

    Thanks

  2. #2
    Join Date
    Feb 2005
    Location
    Australia
    Posts
    5,842
    Add this line just before the RewriteRule:
    Code:
    RewriteCond %{REQUEST_URI} !^/blog
    Chris

    "Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them." - Laurence J. Peter

Similar Threads

  1. Apache Rewrite
    By ans_steve in forum Programming Discussion
    Replies: 4
    Last Post: 12-26-2008, 10:43 AM
  2. apache rewrite ==> lighttpd rewrite HELP
    By moonswamp in forum Hosting Security and Technology
    Replies: 0
    Last Post: 07-24-2008, 07:59 PM
  3. apache rewrite ==> lighttpd rewrite HELP
    By Woooo in forum Hosting Security and Technology
    Replies: 9
    Last Post: 06-24-2008, 01:07 PM
  4. Apache ReWrite Help
    By mainarea in forum Programming Discussion
    Replies: 0
    Last Post: 06-17-2003, 02:59 PM
  5. apache url rewrite ?
    By Tobarja in forum Hosting Security and Technology
    Replies: 4
    Last Post: 08-15-2001, 11:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •