www.webdeveloper.com
Results 1 to 3 of 3

Thread: What does this rewrite rule do?

Hybrid View

  1. #1
    Join Date
    Aug 2007
    Location
    Washington
    Posts
    219

    What does this rewrite rule do?

    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:

    Code:
    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!
    Last edited by bejitto101; 01-04-2009 at 08:35 AM.

  2. #2
    Join Date
    Mar 2005
    Location
    Sydney, Australia
    Posts
    7,974
    Code:
    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.
    Stephen

  3. #3
    Join Date
    Aug 2007
    Location
    Washington
    Posts
    219
    How about this part:
    Code:
    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!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles