Return to Support

Change main pages redirect

Home Forums Graphene WordPress theme Support Change main pages redirect

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #10196
    gsola96
    Member

    Hello everyone,

    I recently installed wordpress on my own server and I have chosen Graphene as the theme. My website is served on http://mydomain/wordpress/ (note the trailing slash) using nginX but I found out that, at the top of the page, after the heading with the title, there is a line with the name of the pages. There, I have “Home” and “Sample page”. Then, the problem I have is that the “Home” page links to http://mydomain/wordpress (without the trailing slash) so, nginX gives me a 404 error.

    What can I do to solve this? Where can I change the redirection of the “Home” button? I tried to find where to edit something but I don’t have much knowledge of PHP, but if someone can tell me where this redirection is found, I could be able to edit the file myself.

    Thanks in advance.

    Guillem

    #45599

    Are you talking about the “Home” button in a menu? If so, you can use a custom menu.

    A link to your site really makes addressing issues much easier.

    #45600
    gsola96
    Member

    I’m talking about the “Inici” button (Home in English).

    Capture:

    [img]ftp://gsola96.no-ip.org/Public/Captura.PNG[/img]

    When you click Inici, the link takes you to mydomain/wordpress (without the trailing slash at the end) when it should point to mydomain/wordpress/

    That’s why I think it would be easier to solve it by changing some php files with the WordPress editor…

    Thank you for your attention.

    EDIT: it also redirects me to an https, even if i’m connected through plain http.

    #45601
    gsola96
    Member

    OH MY GOD. Sorry for the stupidity… As Einstein said,

    Quote:
    there are two infinite things: human stupidity and the Universe; and I’m not sure about the former.

    I’m a newbie and I couldn’t find how to add things to a custom menu. So I created a custom menu to link the different pages I have in mind to add: About me, about the blog… Now I did it and it works with custom links with custom labels.

    With the default menu, it would be easier to add links to different pages since I think that is done automatically, but I don’t mind if I have to add manually after creating these pages…

    #45602

    Custom menus are generally the way to go!

    #45603
    gsola96
    Member

    I’m facing a new problem now. The link of the title of the blog also redirects to mydomain/wordpress (without trailing slash) that gives me a 404 since I need the trailing slash to access the site correctly. Is there any way to change this link’s behaviour?

    Thank you.

    Guillem

    #45604

    You’ll need to edit your .htaccess file and add this above the WordPress portion:

    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_URI} !(.*)/$
    RewriteRule ^(.*)$ http://domain.com/$1/ [QSA,L,R=301]

    #45605
    gsola96
    Member

    Thanks Kenneth! Even that I couldn’t resolve the problem as you said, I appreciate your support.

    To get that working I made a little “cheat”: I have made the title and subtitle of my page as hidden and the header image has the text written in it (so I uploaded an image with the text embedded). So there is not any link on the title, and so, I don’t have this problem anymore.

    Now, I have noticed that, when I ask for an inexistent page, I get the nginX default 404 error, not the graphene theme one. This might be offtopic and I should open another thread, but maybe it’s easy stuff for you and you could give me a hand.

    EDIT: I found that, actually, the 404.php page appears but it fastly reloads and goes to the default nginx one.

    Thanks for your attention!

    Guillem

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.