WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Issue with home page redirect (14 posts)

  1. mistermagoo
    Member
    Posted 3 years ago #

    I have installed in root account WP and upgraded to multisite but I would like to make a simple redirect from the home page to another folder:

    wordpresssite.com to wordpresssite.com/welcome/

    (with or without www)

    I use normaly in cpanel a redirect tool, but this time it simply doesn't work!
    I tried everything: redirect plugins, reinstall with another domain, with a parked domain, having serveral redirects at the same time. Well, basicaly each time it opens the normal wp home page, or a page that says: you don't have allowed registration to your site.

    I looked everywhere online, but unless I'm doing something wrong, it looks mission impossible.
    Can you please tell me what to do?

    Thanks.

  2. mistermagoo
    Member
    Posted 3 years ago #

    Thanks, I think it will work now, but actualy what I mean is to redirect to another website that is in the same root –it's a flash website.
    Is it also possible I guess.

  3. Same thing. Make your front page template include the flash content. Done.

    Don't reinvent the wheel! Use what works.

  4. mistermagoo
    Member
    Posted 3 years ago #

    hmm..., well so you want me to add an iframe in the php?

    Let me explain a few things first to be sure.

    Originaly, I have this reseller account, which has his own root. http://www.domainname.com.
    Within this root, I have around 5 different sites: wp-php, flash, joomla, html (each in his own domain folder, besides the flash site which was in the root and is configured in an html file.

    Then, I wanted to have multisite for a new project, and obviously it had be installed in the root.
    So to be sure it won't cause any " file confusion" in the root, I decided to move the flash site in his own folder (welcome), and add a 301 redirect in cpanel:
    http://www.domainname.com ---> redirect to: http://www.domainname.com/welcome
    (This flash site is the domain name).

    And obviously it was working, until I installed the wp site.

    I believe what you say, just want to be sure in case of a strange scenario.

    Thanks

  5. mistermagoo
    Member
    Posted 3 years ago #

    I forgot to mention that I moved "the flash site" to his own folder, because it consists of over 150 external files (using call functions as you probably know). Thus to avoid any file confusion is more for me than for the wp configuration :)

  6. No. I want you to make a STATIC FRONT PAGE and embed your flash just like you would in any PHP file :)

    Hand to Obi Wan, it's really that simple.

    You don't need to redirect to /welcome, you just make a page (call it 'front page') and follow these directions: http://codex.wordpress.org/Creating_a_Static_Front_Page

    Now then, you make a page TEMPLATE called front-page.php and in THAT code it to look like whatever you want. You can embed the flash stuff in the PHP.

  7. mistermagoo
    Member
    Posted 3 years ago #

    I agree with you… it's galactical easy, but honestly with you , I'm not a programmer. I actualy learned php since relatively shortly.

    Well, making the stastic page is kids easy, but unfortunately I encounter dificulties by addding the swf to the page template.
    You see, the page in question has no borders, no header, basicaly nothing besides the swf.

    I understand that for you php is like breathing :) thus…can you please help to insert that swf in the page template?

    Thnx

  8. mistermagoo
    Member
    Posted 3 years ago #

    thank you Andrea, but that one I also checked, and it doesn't say anywhere how to insert a swf, isn't it.

    I read many pages online about how to insert a swf into a php, I tried different <? php… ?> … but I can't make it work.
    Please accept my apologies for my php ignorance, I guess it's not my thing.

  9. thank you Andrea, but that one I also checked, and it doesn't say anywhere how to insert a swf, isn't it.

    Same way you insert it into any HTML page.

    Look.

    <?php
    PHP code here
    ?>
    
    HTML CODE HERE
    
    <?php
    More PHP code here
    ?>

    You're overthinking. Remember, PHP is an extension, and the PHP code is ONLY called between PHP tags :) When you're outside them, it's normal HTML. You can make a PHP page with no PHP code at all if you wanted!

  10. mistermagoo
    Member
    Posted 3 years ago #

    It makes sense. I'm sure it must work this time.
    thnks :)

  11. mistermagoo
    Member
    Posted 3 years ago #

    Hi,

    Sorry was very busy with other projects.
    Last week I tried to insert the html code that includes the swf codes, but unfortunately it's not working.

    Here is the code I used:

    [Moderator note: snipped code block, please use the pastebin as per the Forum Guidelines]

    I don't feel the Force yet, but I see the Light :)

  12. mistermagoo
    Member
    Posted 3 years ago #

    Sorry about that...

    here is the pastebin:

    http://mallorcawalls.com/test_custom_page/custom_page.txt

Topic Closed

This topic has been closed to new replies.

About this Topic