CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2002
    Posts
    10,943

    .htaccess redirection

    What am I doing wrong? I cannot figure out when this is throwing a server error. It should redirect anyone going to to www.example.com/folder to www.example.com/folder.php.

    Code:
    RewriteCond %{REQUEST_URI} ^/folder [NC] 
    RewriteRule ^(.*)$ http://www.example.com/folder.php [L,R=301]
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  2. #2
    Join Date
    May 2002
    Posts
    10,943

    Re: .htaccess redirection

    Update: It might not be that code after all.

    It turns out, that I have two identical .htaccess files. Bytes to permissions the files are identical. However, one returns a server error and the other works. Any ideas? I have never seen this before.
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured