• I am trying to set up a copy of my website with WordPress on a Linux server (Fedora). I have copied the files and set up permissions etc and the main website comes up and the wp-admin environment works fine. All plug-ins are also working. So far so good…

    All links on the copy of my web site are broken and all pictures are not showing up. I can see the link is correct (%postname%) but as soon as I click it I get the broken link.

    I have checked and I have mod_rewrite running on Apache and the htaccess file is including the recommended stuff for mod_rewrite.

    I am relatively new to Linux but I have Googled this for several days and tried pretty much anything.

    It must be something simple (I hope). Any suggestions?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Do the links work when you use the default permalink setting?

    Thread Starter burgerdoctor

    (@burgerdoctor)

    Yes, it does. How do I make it back to what I had?

    It sounds like there is an issue with mod_rewrite on your server. What’s in your WP .htaccess file?

    Thread Starter burgerdoctor

    (@burgerdoctor)

    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    That looks OK – which brings you back to mod_rewrite not working/running.

    Thread Starter burgerdoctor

    (@burgerdoctor)

    I checked the httpd.conf and it is loading it. Also, wouldn’t I get an error loading the website if mod_rewrite was not enabled with the current .htaccess file?

    mod_rewrite might be loaded but it may not be working. The site’s home page and any permalinks that use the default settings (eg: ?p=150) don’t make use of mod_rewrite.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Problem with broken link’ is closed to new replies.