WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Browser address display permalinks and not id

[Resolved] Browser address display permalinks and not id

Viewing 14 replies - 1 through 14 (of 14 total)
  • esmi

    @esmi

    Forum Moderator

    Have you set up any custom permalinks? If so, was the .htaccess file successfully created/amended?

    bentonda

    @bentonda

    I had not done that but I have now and it is still suffering the same problem.

    I changed from;
    Options +FollowSymlinks
    RewriteEngine On

    RewriteRule ^home.htm$ benton-photographic.php
    RewriteRule ^portrait_([0-9][0-9]).htm$ portrait.php?id=$1
    RewriteRule ^wedding_([0-9][0-9]).htm$ wedding.php?id=$1
    RewriteRule ^gallery_([0-9][0-9]).htm$ gallery.php?id=$1
    RewriteRule ^event_([0-9][0-9]).htm$ event.php?id=$1
    RewriteRule ^industrial_([0-9][0-9]).htm$ industrial.php?id=$1
    RewriteRule ^contact_([0-9][0-9]).htm$ contact.php?id=$1
    RewriteRule ^wed_([0-9][0-9]).htm$ wedding-page.php?page_id=45

    to:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /berlin/
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /berlin/index.php [L]
    </IfModule>

    Regards
    Ben

    esmi

    @esmi

    Forum Moderator

    The site at http://www.bentonphotographic.com.au/berlin/ is working perfectly for me – custom permalinks and all.

    bentonda

    @bentonda

    But when you navigate to my blog page the php id thing gets displayed in the address bar, this is what I am trying to change to the word blog
    like this;

    http://www.bentonphotographic.com.au/berlin/blog

    If you try to navigate there you get the following message;

    This is somewhat embarrassing, isn’t it?

    Cheers
    Ben

    esmi

    @esmi

    Forum Moderator

    Try checking your custom menu. I think you hardcoded that Blog link.

    bentonda

    @bentonda

    Yes you are right under menus i have a menu entry named blog and in the URL section I have the following;

    http://www.bentonphotographic.com.au/berlin/?p=0

    On the wp-admin/nav-menus.php screen under heading pages there is no page named blog. When I have done a search on the page named blog nothing comes up either.

    So I did create a custom link item here and called it blog with the hard wired entry as described above.

    Is there something I can do to make this dynamic?

    Ben

    esmi

    @esmi

    Forum Moderator

    What items do you have in your custom menu in Appearance -> Menus?

    bentonda

    @bentonda

    I have created a menu called my_menu and I have three menu items with the word page in the top right hand corner;

    Home
    Wedding
    Portrait

    And then I have one menu item with the word custom in the top right hand corner;

    Blog

    esmi

    @esmi

    Forum Moderator

    Try deleting that menu and then re-creating it.

    bentonda

    @bentonda

    The whole menu named my_menu?

    esmi

    @esmi

    Forum Moderator

    Yes

    bentonda

    @bentonda

    Okay I have had a quick go at that and I only created menus items for the pages, and now I have no way of navigating to the blog page, without creating a custom link.

    So how would I navigate to the blog page?

    http://www.bentonphotographic.com.au/berlin/

    esmi

    @esmi

    Forum Moderator

    If you set the main posts page (ie Blog) up using the instructions in creating a static front page, it will be listed in the Pages list within Appearance -> Menus.

    bentonda

    @bentonda

    Thank You esmi the instruction in the document creating a static front page proved to be very helpful.

    Cheers
    Ben

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘[Resolved] Browser address display permalinks and not id’ is closed to new replies.