Jump to content
TNG Community

redirect URLs to my site

Recommended Posts


Hi there.

I succesfully integrated TNG into wordpress. It works fine.

I can access TNG by two URLs.

www.thieltg.es/stammbaum/ (the WOrdpress Site)

and www.thieltg.es/tng_thi/ (original TNG-Folder where it is installed.)

My Question is: Is it possible to disable to visit the tng_thi folder directly or to redirect it to Wordpress. There are some links in google that point to it. but I want them to redirect to the Wordpress-Site, so that everyone can see the whole site, not only TNG.

For example: If you click on http://thieltg.es/tng_thi/getperson.php?pe...I1&tree=thi you should get redirected to http://thieltg.es/stammbaum/getperson.php?...I1&tree=thi.

Thanks for help...

Share this post

Link to post
Share on other sites

I found the answer by myself.

If anybody else wants to know, here is the code...

RewriteEngine on
RewriteBase /
Options +FollowSymlinks
RewriteRule ^tng_thi/(.*)$ stammbaum/$1 [L,R]

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