• Resolved hakantanar

    (@hakantanar)


    Hi,

    How can I change the WordPress URL in order to lead the traffic to the main page.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator bcworkz

    (@bcworkz)

    You wish to redirect requests to your /anasayfa/ page to your site’s home page? You do not wish for /anasayfa/ to be accessible but you want existing URLs to it out in the wild to lead somewhere?

    Assuming Apache server, add a redirect rule to .htaccess. For example
    Redirect 301 /anasayfa /

    You manage what appears as your site’s home page through reading settings. You can either display your latest posts or a static page. If you choose a static page, you should also select another page that will display your latest posts.

    FYI, earlier replies to this topic were removed for cause.

    Thread Starter hakantanar

    (@hakantanar)

    Hi,

    I will try to do the first advice. But I don’t know place where to redirect.

    The second step of changing the status of the page through reading settings is unapplicable. I custom the page to a special template. When I change the settings the page is shown as the default template. It would be easier than redirect the page if there is a way to show the special template

    Moderator bcworkz

    (@bcworkz)

    You can cause any template to be used for your home page by naming it front-page.php. You can cause a template to be used on any other specific page by naming it in a particular way. Also see the global use section further down the linked page.

    You should keep your custom templates in a child theme, otherwise they will be removed during the next theme update.

    If you still prefer the redirect option, the suggested .htaccess directive should be on its own line. I recommend placing it just above the code that’s added by WP, above the # BEGIN WordPress line

    Thread Starter hakantanar

    (@hakantanar)

    Ok. Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How can I change the WordPress URL’ is closed to new replies.