Redirect webpage.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ilija
    New Member
    • Mar 2009
    • 3

    Redirect webpage.

    Hello,
    Can someone please explain me how to make redirection from:
    Agentforce 360 Platform (Formerly Salesforce Platform) powers the Agentic Enterprise, combining metadata, governance, MuleSoft and Data Cloud.

    to
    Agentforce 360 Platform (Formerly Salesforce Platform) powers the Agentic Enterprise, combining metadata, governance, MuleSoft and Data Cloud.


    I have multilingual webpage and default language is english, which means that home page is www.site.com/en
    When opening www.site.com, content is the same as www.site.com/en so i dont want to have duplicated content (because of search enignes...
    Any solution?

    Thanks in forward
  • Markus
    Recognized Expert Expert
    • Jun 2007
    • 6092

    #2
    Please do no Hi-jack other's threads, please.

    In your index file (for site.com/), place the below:

    Code:
    <?php
    
    header("Location: dir/");
    
    ?>
    That will redirect you from site.com to site.com/dir/.

    Comment

    • ilija
      New Member
      • Mar 2009
      • 3

      #3
      Sorry for posting in other topic, but at first I couldnt realize how to start new threar, now I see that I have to go to "answers" section first.

      Anyway, I used header() function thousand times, but lately I was occupied with .htaccess redirection and it just took me away from the right solution :-)

      Thanks for your answer ;)

      Comment

      • Markus
        Recognized Expert Expert
        • Jun 2007
        • 6092

        #4
        Originally posted by ilija
        Sorry for posting in other topic, but at first I couldnt realize how to start new threar, now I see that I have to go to "answers" section first.

        Anyway, I used header() function thousand times, but lately I was occupied with .htaccess redirection and it just took me away from the right solution :-)

        Thanks for your answer ;)
        You're welcome. .htaccess wouldn't be logical here, but using a simple header() redirect is perfectly logical.

        Comment

        Working...