We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32025
    • 305 Posts
    I have 2 issues both of which I believe have to be related to friendly URL's and pages not directing properly. First my FormIt form will not redirect t o the success page. There are several threads in this form that I have read, I believe it to be a friendly URL and .htacess rewrite issue. Second I created a components with an iFrame in my admin panel. I have done this before with success on another installation and followed the same instructions. The iFrame will not display the page. Once again I believe it's friendly URLs causing and possible redirect causing this. Either way I want to make sure by blocking this.

    I want to block redirect from 2 pages (at least I do not want redirect to affect the transition from page 8 to page 9):

    http://www.mysite.com/contact.html (id=8)
    http://www.mysite.com/contactsuccess.html (id=9)


    And I also want to block the components folder (or the whole core folder for all of the admin). If not at least this file:
    http://www.mystore.com/core/components/gallery/index.php

    What I want to modify is my .htaccess. I currently have these settings:
    RewriteEngine On 
    RewriteBase /
    
    # The Friendly URLs part 
    RewriteCond %{REQUEST_FILENAME} !-f 
    RewriteCond %{REQUEST_FILENAME} !-d 
    RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
    
    # Exclude /assets and /manager directories from rewrite rules
    RewriteRule ^(manager|assets) - [L]


    How do I block the 2 pages above? Second, will blocking the manager area, also block the admin page (http://www.mystore.com/core/components/gallery/index.php) that I want to display in the manager area? I just don't know how to add both of those pages I have listed above to my .htaccess to see if this is the issue.
      Making the web a better place on site at a time! Dayton Web Design: http://www.dayton-web-design.com/
      • 42046
      • 436 Posts
      Who do you want to block to apply to? Everyone? Certain users? Search engine crawlers?
        • 32025
        • 305 Posts
        I suppose at this point i want to leave the 2 contact pages alone. I am afraid my visitors will not see those pages and am looking into a different solution for the redirect issue.

        But in my admin panel for this page: http://www.mystore.com/core/components/gallery/index.php I created a components menu. When I click on the component menu I created, the iFrame loads my homepage loaded instead of the page the iFrame designates that is supposed to load. If I right click and view source the page in the admin I see this URL in the source code of the iFrame: http://www.go.com/core/components/gallery/index.php. If I paste this same address in another window I see the page clearly. But in the admin panel it shows the home-homepage (minus the css sytles). This has to be a redirect or friendly URL issue if the page will not display properly in the admin.

        This is the directory (/gallery and all subdirectories) I want redirects and friendly URL's to ignore. Since its in the admin I suppose I want it blocked to everyone (but I am unsure).

          Making the web a better place on site at a time! Dayton Web Design: http://www.dayton-web-design.com/
          • 32025
          • 305 Posts
          OK the neither issue is with the .htacess file. Both are separate and resolved. Thank you.
            Making the web a better place on site at a time! Dayton Web Design: http://www.dayton-web-design.com/