Forums

Permalinks and .htaccess (8 posts)

  1. Emanon1983
    Member
    Posted 3 years ago #

    I know this has been mentioned before but i have not found the solution!

    Here is my site, its a site all bout foxy bingo, i've spent all morning trying to change the permalinks to

    /%category%/%postname%/

    I'm not sure where the .htaccess goes

    If i put it in the root of my site, everything goes blank and i can't access anything

    If i put it the root of the theme then it loses all styling and still doesn't work!

    HELP

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
  2. Samuel B
    moderator
    Posted 3 years ago #

    I think we may have been down this road
    http://codex.wordpress.org/Using_Permalinks#Choosing_your_permalink_structure

    For performance reasons, it is not a good idea to start your permalink structure with the category, tag, author, or postname fields.

    also, are you sure you are on a linux server and can use pretty permalinks?
    If on a windows server - see this
    http://codex.wordpress.org/Using_Permalinks#Permalinks_without_mod_rewrite

    if you are on a linux server, the .htaccess would definitely go in the root

    find out about your server and report back. :>)

  3. Emanon1983
    Member
    Posted 3 years ago #

    definitely sure i am on a linux server with Supanames...

    Still don't quite get why you shouldn't start with your category! Whats the best way for SEO, surely its category and then post name? I should figure out how to get it working first i guess

  4. Samuel B
    moderator
    Posted 3 years ago #

    well wp assumes the category and you can use it - it just generates tons more queries
    I think you can achieve the same effect with just /%postname%/

    Also, try chmod 666 on .htaccess then try your custom permalinks
    if that works chmod back to 644

  5. Emanon1983
    Member
    Posted 3 years ago #

    the problem was, i was using textedit to change my htaccess file (rtf) and then uploading it and changing it to .htaccess.

    i should have been uploading the txt file so it was a case of the formatting in the rtf file!

    sorted - still want to know what the best url structure is

  6. Emanon1983
    Member
    Posted 3 years ago #

    so just site/postname is fine then?

  7. Samuel B
    moderator
    Posted 3 years ago #

    sorted - still want to know what the best url structure is

    many many opinions on that
    in custom structure try just
    /%postname%/
    exactly like that
    might review this
    http://codex.wordpress.org/Search_Engine_Optimization_for_Wordpress

    glad you figured it out - you definitely want to keep rte's away from wordpress - posting, also

  8. Emanon1983
    Member
    Posted 3 years ago #

    maybe you could help me with my more important swf issue which isn't very pleasent for me ! ;) Here

Topic Closed

This topic has been closed to new replies.

About this Topic