Flash buttons links

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
gala
Forum Members
Forum Members
Posts: 25
Joined: Sat Jun 13, 2009 8:56 am

Flash buttons links

Post 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.
somnusdraco
New Member
New Member
Posts: 3
Joined: Thu Oct 08, 2009 1:31 pm

Re: Flash buttons links

Post 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.
gala
Forum Members
Forum Members
Posts: 25
Joined: Sat Jun 13, 2009 8:56 am

Re: Flash buttons links

Post by gala »

Thank you very much! I'll try it right now!
:D
Post Reply

Return to “Layout and Design (CSS & HTML)”