Direct access .html file except from a link on my joomla site? Possible?

Discussion in 'Joomla' started by btothertotheent, Nov 14, 2009.

  1. #1
    Ok, I have a joomla site, almost 100% complete. It has image galleries and stuff that originally were going to be 'in' the joomla site and thus only able to be accessed with proper user name and password.

    Just the other day found out I needed to make a different type of web gallery which cannot easily be placed in the joomla framework. So it it a standalone index.html in its own directory. But it does what I need it to.

    ONLY PROBLEM, you can access this content without typing in your username and password just by typing into the address bar.... www.sitename.com/gallery/gallery1/index.html

    Not cool!

    How can I only allow the link directly from joomla to allow access? Or if you have any other ideas! I tried disabling .html files through .htaccess like you would disable hotlinkng but that didn't seem to work right. And I tried putting .html in the hotlink protection through cpanel and it just ignored it.

    Site is supposed to be up Monday so I will do anything to get this working!

    THANKS!
     
    btothertotheent, Nov 14, 2009 IP
  2. khajeya

    khajeya Member

    Messages:
    256
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    28
    #2
    you can use php file and load joomla session to check the user session, but offcourse it will be better if you create your own component / module. it easy, just try it.
     
    khajeya, Nov 18, 2009 IP
  3. bhagwant.banger

    bhagwant.banger Active Member

    Messages:
    99
    Likes Received:
    6
    Best Answers:
    1
    Trophy Points:
    60
    #3
    use a wrapper from core joomla components to display this page on a menu there won't be any issues
     
    bhagwant.banger, Nov 24, 2009 IP