• Hi,

    A site I’ve built uses mainly the ‘page.php’ and ‘archive.php’ so pages are being displayed like index.php?page_id=23 or index.php?cat=5.

    However, I want to display it like /careers/vacancies for instance, instead of page_id=23.

    So this would be like category/page-name.

    I’ve tried doing a ‘Custom Structure’ like /%category%/%page-name% but had no success. Can someone please help me with this?

    Many thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Have you tried uploading a .htaccess file to your root WordPress installation folder and CHMOD’ing it to 666? You’ll need to set the correct permissions to the .htaccess file before WordPress will be able to write to and update it.

    You will also have to use slugs, or it will show the id number anyhow …

    Thread Starter sincewelastspoke

    (@sincewelastspoke)

    Hey,

    Thanks for the replies.

    OK. Yes, I used a very basic .htaccess file. I set them to 755 for the time being and got the result above.
    I’m using slugs for all posts and page titles.

    But just wondering the best way to have say: category-name/post-name or just page-name instead of having that hideous php extension heh.

    Here’s what I’m currently using, but it’s messing up my site, giving me 500 errors ??

    # BEGIN WordPress
    
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    Any ideas?

    Thread Starter sincewelastspoke

    (@sincewelastspoke)

    I managed to get desired effect using the above.

    Instead, I think I shall link fully using PermaLinks.

    Thanks again for the help fella’s, much appreciated.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘.htaccess file – good one for SEO?’ is closed to new replies.