Page 1 of 1

Flash buttons links

Posted: Mon Oct 05, 2009 9:58 pm
by gala
Could you please help me with the following issue:
I have created some flash menu buttons and hardcoded them in flash
like  http://mysite.com/home and http://mysite.com/contact.

They work fine when I use them from http://mysite.com.
But when the address is http://www.mysite.com
my buttons don't work.

I see that cataloger works fine  both ways.
So, the question is how to change the buttons' script to
be able to use them either way.

I would appreciate you help a lot.

Re: Flash buttons links

Posted: Mon Oct 12, 2009 7:14 pm
by somnusdraco
Gala,

I had the exact same problem, and here is the solution I used...

You need to go into your config file and change the root url, then create an .htaccess file for your site and upload that file into the main directory.  This will redirect the second domain to the working on.  To do this:

Go into your config file and change the rooturl to be "www" instead of just "http" (see bleow)
$config['root_url'] = 'http://www.yourdomain.com';

Save that and upload your config file.

Then:

1. Go into notepad (or a similar program) and create a new file.
2. Save this file as: .htaccess
3. Paste the following into the code:

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^yourdomain\.com
RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R=permanent,L]

Then save the document and upload the .htaccess file into the root.

Re: Flash buttons links

Posted: Thu Oct 15, 2009 12:36 am
by gala
Thank you very much! I'll try it right now!
:D