Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2004

    mod rewrite problem

    I have the following rewrite code in my httpd.conf:

    RewriteEngine on
    Options +FollowSymlinks
    RewriteCond %{HTTP_HOST} ^[^.]+\.example\.com$
    RewriteCond %{HTTP_HOST} !^www\.example\.com$
    RewriteCond %{HTTP_HOST} !^host\.example\.com$
    RewriteRule ^(.+) %{HTTP_HOST}$1 [C]

    RewriteRule ^([^.]+)\.example\.com/([a-z0-9\-]+).html$1&module=$2&view=index

    However, when I access it displays in the browser bar as

    I was under the impression that mod_rewrite could do internal redirects without the user knowing about it. What have I done wrong and how can I accomplish that?


  2. #2
    Join Date
    Mar 2004
    I noticed that it sends a 302 redirect using a capturing device. How can I stop it from doing that? I want an internal redirect only.

Posting Permissions

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