burgerdoctor
Member
Posted 1 year ago #
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?
Do the links work when you use the default permalink setting?
burgerdoctor
Member
Posted 1 year ago #
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?
burgerdoctor
Member
Posted 1 year ago #
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.
burgerdoctor
Member
Posted 1 year ago #
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.