Click to See Complete Forum and Search --> : What does this rewrite rule do?


bejitto101
01-04-2009, 08:50 AM
Hi, I'm somewhat new to htaccess files, so I was wondering if I could get some help deciphering one from one of the projects I'm working on. Any idea what this is supposed to do:

RewriteEngine on

RewriteBase /v5.issue12/

Options +FollowSymLinks
rewritecond %{http_host} ^ee\.com$ [NC]
rewriteRule ^(.*) http://www.ee.com/v5.issue12/$1 [R=301,L]

RewriteRule ^([^frame|index].+).html$ index_.php?tpl=$1.html [T=application/x-httpd-php]

Much thanks for any help!

felgall
01-04-2009, 05:17 PM
rewritecond %{http_host} ^ee\.com$ [NC]
rewriteRule ^(.*) http://www.ee.com/v5.issue12/$1 [R=301,L]

adds the www. to the front of the domain name if your visitor left it off and also transfers them into the v5.issue12 folder.

bejitto101
01-05-2009, 06:48 PM
How about this part:
RewriteRule ^([^frame|index].+).html$ index_.php?tpl=$1.html [T=application/x-httpd-php]

The the part that's giving me issues. It seems to be inserting index_.php into a frame in index.html. But I'm not quite sure, I just need to know, because I'm trying to get rid of the frame, but I need the content from index_.php. Is there any way I could just insert index_.php into the <body>, instead of the frame?

Much thanks!