Jump to content
TNG Community
Mike Goodstadt

Stop direct TNG folder access (using Joomla)

Recommended Posts

Mike Goodstadt

I have joomla running with TNG as a subfolder of the httpdocs folder where joomla resides.

All working fine (logins etc) except mysite.com/genealogy skips joomla wrap and opens independent of it.

What havent I done or added?

Is it a URL rewrite issue? If so what shoulñd I add in the .htaccess file?

Cheers guys

Mike

Please feel free to redirect me to previous posts on the same issue -searched for an hour but found nothing explicit... :roll:

Share this post


Link to post
Share on other sites
mwilbers

Hi,

You've done nothing wrong. It's just the way Internet works. You can access individual pages as you like, if you know the URL.

Other pages in your Joomla site are in the database, so they don't actually exist. But the main TNG page, index.php, does exist, so it's directly accessible.

I have th same problem. Visitors who find my pages thru Google, directly go to the TNG part and don't load Joomla. I'm trying to develop some code to load Joomla "around" my TNG pages, but it's tricky, and I'm not sure when it'll be finished...

Maarten

www.maartenwilbers.nl

Share this post


Link to post
Share on other sites
steve30000

Just so you know... if you are interested in having Google list your genealogy pages, you are going to have trouble getting listings while TNG is wrapped in Joomla. Google won't be able to see your different genealogy pages since they are wrapped in an IFRAME and all appear as that same URL.

I use Postnuke for my CMS and had a similar problem so I keep a version of my genealogy CMS-free for google and people who find it that way. I don't have a single one of my CMS genealogy pages listed in Google but have 16000 CMS-free pages listed.

Share this post


Link to post
Share on other sites
reverendspam

I have joomla running with TNG as a subfolder of the httpdocs folder where joomla resides.

All working fine (logins etc) except mysite.com/genealogy skips joomla wrap and opens independent of it.

What havent I done or added?

Is it a URL rewrite issue? If so what shoulñd I add in the .htaccess file?

Cheers guys

Mike

Please feel free to redirect me to previous posts on the same issue -searched for an hour but found nothing explicit... :roll:

Here is an easy redirect cheat for linux servers and if your tng front page is "index.php" and assuming the user did not type in the exact directory and file name.

in your TNG directory create 2 files.

1) create an empty index.html file in your TNG directory

2) create an .htaccess file in your TNG directory

using some text editor add this line to your blank .htaccess file

Redirect /olddirectory/oldfile.html http://yoursite.com/newdirectory/newfile.html

Should do the trick.

Here is an example of my redirect http://www.mullismelange.com/tng/

This just redirects to http://www.mullismelange.com

my .htaccess code was:

Redirect /tng/index.html http://www.mullismelange.com

Share this post


Link to post
Share on other sites
BMR789

I implemented your work around Joe.

But instead of just the website root, I re-directed them to my genealogical page.

In my case;

Redirect /genealogy/index.html http://www.bigg-wither.com/component/optio..._tng/Itemid,51/

After all that is what they are after - and it is us that want them to view it within our framework of choice.

Still - it still allows people to right click and select open in new window/tab and then TNG is unshackled and out of the framwork

Blair

Share this post


Link to post
Share on other sites
spankee

It looks like the best solution to this problem has just arrived. John Vickers has created an integration for Joomla wich does not use I-frames. This means google will link to your pages correctly.

You can find his integration and a demo here http://www.tngforum.us/index.php?showtopic=2366

Patrick

Share this post


Link to post
Share on other sites
reverendspam

It looks like the best solution to this problem has just arrived. John Vickers has created an integration for Joomla wich does not use I-frames. This means google will link to your pages correctly.

You can find his integration and a demo here http://www.tngforum.us/index.php?showtopic=2366

Patrick

Even with John's integration there is still the directory to deal with where TNG resides--even the way John has it set it up.

There is 2 schools of thought with John's Integration and the bridge component found here . Not everyone is going to want to replace their TNG files with hacked TNG versions just as not everyone will want to use the bridge. Neither way is perfect per say as TNG is written to stand on it's own, but again either way looks like it has to deal with where the TNG program is placed within a directory at this point and this is just a down and dirty way to redirect away from where your tng directory resides.

I will assume John's TNG directory is here as it gives error until he redirects the directory or fixes the errors the index.php page is giving :) Scouted a bug I believe.

Knowing John's wonderful work--he will find a way to make it all work :)

Joe

ps. not everyone will want Google crawling their tng directory as well. Google and MSN are sucking my bandwidth.

Bot/Spiders Hits Bandwidth Last Visit

MSNBot 1364+545 50.43 MB 24 Apr 2007 - 00:09

Googlebot 1003+42 14.95 MB 23 Apr 2007 - 23:18

Inktomi Slurp 151+148 1.98 MB 23 Apr 2007 - 09:46

Unknown robot (identified by 'crawl') 72+11 1.39 MB 22 Apr 2007 - 22:25

Unknown robot (identified by hit on 'robots.txt') 0+9 2.51 KB 22 Apr 2007 - 20:01

Alexa (IA Archiver) 0+8 2.23 KB 19 Apr 2007 - 12:23

AskJeeves 3+5 45.73 KB 19 Apr 2007 - 11:42

Unknown robot (identified by 'spider') 1+4 16.01 KB 20 Apr 2007 - 04:23

pps. I personally focus on global aspects of my website to stay consistently within the top 20 of Google and MSN and others for my surname of Mullis. Google crawling your site will just throw every name you have into a sea of others researching the same individual which does not guarantee you will be in the top few pages of any search engine. You may never get found unless it is a rare name. Do a search on John Smith and see what I mean. Your head may spin trying to find the John Smith that may be your great great grandfather.

Type in Mullis Family or Mullis Genealogy in Google, MSN, or Yahoo and you will see my site " The Mullis Melange" typically in the top ten of that search term (most of the time between #1 and #5). Gotta think like those who are seeking you out :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×