Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter graykitty

    (@graykitty)

    This whole issue about permalinks and htaccess just took a weird turn!
    Since no one has looked at the above code to say good or bad, I decided to see what the htaccess I already had would do to permalinks:

    Options +FollowSymLinks
    RewriteEngine On

    So I went back to permalinks and changed structure to
    /%year%/%monthnum%/%day%/%postname%/

    It updated–amazing–but not to the structure above but to
    http:mysite.com/parentpage/childpagename

    this looks great but how does it effect spiders and robots??

    Thread Starter graykitty

    (@graykitty)

    hmmmm– 2 questions
    !. I put the following code .htaccess code in the site and it did not break the site:

    Options +FollowSymLinks
    RewriteEngine On

    does that turn on followsymlinks even though the host says they won’t turn it on?

    2. If so, I saw this code on webmasterworld forum and it said it solved some problems with <IfModule> just wanted an opinion about whether it might work on my site (I have already had to reload it fome backup once by adding the wrong code to htaccess.

    # BEGIN WordPress
    #
    #RewriteEngine on
    #
    # Unless you have set a different RewriteBase preceding this point,
    # you may delete or comment-out the following RewriteBase directive
    # RewriteBase /
    #
    # if this request is for "/" or has already been rewritten to WP
    RewriteCond $1 ^(index\.php)?$ [OR]
    # or if request is for image, css, or js file
    RewriteCond $1 \.(gif|jpg|ico|css|js)$ [NC,OR]
    # or if URL resolves to existing file
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    # or if URL resolves to existing directory
    RewriteCond %{REQUEST_FILENAME} -d
    # then skip the rewrite to WP
    RewriteRule ^(.*)$ - [S=1]
    # else rewrite the request to WP
    RewriteRule . /index.php [L]
    #
    # END wordpress
    Thread Starter graykitty

    (@graykitty)

    Thanks for trying but no go–exact same results. I read somewhere that it might be the rewriteBase / line. I am on a shared webhost and the absolute path is

    /home/w/a/mysite.com/html

    so I tried rewriteBase /html
    then rewriteBase /home/w/a/mysite.com/html

    same result–any more ideas?

    without htaccess the site works just fine–with it, it totally breaks–I haven’t a clue who to ask any more.

    Thread Starter graykitty

    (@graykitty)

    My .htaccess in my root dir —
    with this code
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    Set permissions to 777 (on.htaccess)

    Went back to my site and got this message

    Forbidden

    You don’t have permission to access /wp-admin/options-permalink.php on this server.
    Checked permissions were set to 755
    And on all site pages got errors saying could not fine the page.

    have you tried going to
    http://yoursite.com/wp-login.php

    If you transferred all wp files correctly that is where it would be (or in a subdirectory if you made one for your site–ie yoursite.com/sub/wp-log-in.pgp

Viewing 5 replies - 1 through 5 (of 5 total)