Specify _top in .htaccess file
-
Hi, I am trying to add a simple banner/contents frameset to my blog, so that a menu I have works across application.
To try to get this to work, I have changed my .htaccess file so that the rewrite rule goes to index.htm rather than index.php. The normal index.php is then made into the “content” frame in the frameset.
This generally works ok, when a user finds a blog entry in a search engine and clicks on it, the banner with the story – or category- appears in the “contents” frame as it should, and the banner frame with the menu appears on top as it should.
The problem comes in when someone clicks a second blog entry or category- then the banner frame appears twice. I think possibly this can be fixed if there is some way to specify “_top” in the rewrite rule, so whenever an entry is clicked it will produce the complete “index.htm” frameset on the top level. I’m sure this is possible, I just don’t know the syntax. Current .htaccess file is below- could someone help me out.
Thank you
Rob
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /news/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /news/index.htm [L]
</IfModule>
- The topic ‘Specify _top in .htaccess file’ is closed to new replies.