Forums

[resolved] Link <http://our-domain-name/about> not working (9 posts)

  1. afoot_gv
    Member
    Posted 1 month ago #

    Hello!

    I was able to install Wordpress on my server without any problems. I installed one additional plugin (<http://wordpress.org/extend/plugins/simple-captcha/>), and one additional theme (<http://wordpress.pro/wordpress-themes/wedding-10/>).

    After the installation, I read the article
    <http://www.techairlines.com/wordpress-security-tips-and-guidelines/>, following most of the tips. But now, I have a problem I cannot understand.

    Links such as
    <http://our-domain-name/about> and <http://our-domain-name/links> do not work. However, links such as
    <http://our-domain-name/?page_id=2> (pointing to the About page) do work. I modified the `header.php' in the proper theme directory, and that solved the problem. But I still don't understand what's causing this behavior. Why does the link <<http://our-domain-name/about> take me to the front page?

    (By the way, we are using the latest version of WordPress; i.e. 2.8.5.)

    This is what the `.htaccess' file contains.

    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.+)$ index.php/$1

    # Protect wp-config.php
    <Files wp-config.php>
    order allow,deny
    deny from all
    </Files>

    # BEGIN WordPress

    # END WordPress

  2. esmi
    Member
    Posted 1 month ago #

    A link to your site might help...

  3. apljdi
    Member
    Posted 1 month ago #

    Is that the .htaccess that WordPress generated? It looks wrong, partly because WordPress puts its rewrite stuff between the '# BEGIN WordPress' and the '# END WordPress'. Maybe this is peculiar to a particular server?

  4. afoot_gv
    Member
    Posted 1 month ago #

    Oh, sorry. Here's the link. I don't understand why this link doesn't work, but this one does. They point to the same page.

    WordPress didn't generate the .htaccess file. I edited it according to the advice I got from some website (I can't find the URL now, though). Before I made the modifications, when I tried to access the links above, I got "Page not found" error.

  5. apljdi
    Member
    Posted 1 month ago #

    Oh, sorry. Here's the link. I don't understand why this link doesn't work, but this one does. They point to the same page.

    The first link doesn't work because it requires a properly constructed .htaccess file. It is a 'rewritten' URL. It doesn't really 'point to' anywhere unless you have mod_rewrite and a functioning .htaccess, at least on Apache. The second link does not depend upon mod_rewrite and should always work even with pretty permalinks enabled. It might help to read about permalinks.

    I edited it according to the advice I got from some website...

    Why? Wordpress tells you exactly what it needs. And, well... that's what it needs. Go back to wp-admin->Settings->Permalinks, reset the permalinks and follow the instructions.

  6. afoot_gv
    Member
    Posted 1 month ago #

    Again, thanks for taking your time with this.

    Why? Wordpress tells you exactly what it needs. And, well... that's what it needs. Go back to wp-admin->Settings->Permalinks, reset the permalinks and follow the instructions.

    It was just a panic reaction when I realized that some links didnt work. I googled and, well, the rest is history. :-)

    So, resetting the permalinks takes care of the proper .htaccess format as well? If not, could you please provide me with a link to necessary documentation?

    I remember that "About" link worked BEFORE I made some changes (to make WordPress installation more secure).

  7. afoot_gv
    Member
    Posted 1 month ago #

    This page seems to be exactly what I need. I will read it carefully.

  8. apljdi
    Member
    Posted 1 month ago #

    So, resetting the permalinks takes care of the proper .htaccess format as well?

    Yes, as far as setting the minimal things that permalinks need to work. Wordpress might not be able to write the file for you but you will get code that you can copy and paste.

  9. afoot_gv
    Member
    Posted 1 month ago #

    Now it's working! I changed the permalink structure from "Default" to "Day and name."

    apljdi, thanks very much! I appreciate your help. :-)

Reply

You must log in to post.

About this Topic