Image URL leads to "Not found page" - wordpress

Images are working fine in the site. but when I copy an image url and put it on browser, It leads to a "Not found page".
My wordpress site: horinbranding.com
Test an image: http://horinbranding.com/wp-content/uploads/2014/08/robot.png
Thanks in advance for the help.

There can be three reasons for the above problem. Checking and correcting them can solve your issue.
Missing of attachment.php in the theme folder. So add attachment.php page to the theme folder.
Incorrect permalink structure. So set the permalink structure to default.
Improper .htaccess file. So create a new .htaccess file.

Related

How to fix permalink - ?q=%2F appears in link not working wordpress

When I'm adding a page to my website ?q=%2F appears in the permalink and the page is redirecting to 'home'. I tried to change the permalink structure and did some changes to solve this in the .htaccess file but nothing worked so far. Is anybody known with this problem and how to solve this?

I changed my Wordpress theme folder. Now it's not finding my stylesheet after I changed it back

I hope this is a quick fix, but I've been searching for a solution and haven't found one.
Quick background:
I've been developing my Wordpress website locally using WAMP. I'm getting the site ready to deploy to a production server, and before deploying it I wanted to simply rename my theme folder from "naked-wordpress-master" to "My Portfolio" or something different.
First, I went to my theme folder and changed the name. I refreshed the Appearance > Themes page in the wp-admin site and got an error that the stylesheet could not be found.
I got a bit worried, so what I did next was rename the theme folder back to "naked-wordpress-master" and refresh the page. Same error.
I then tried deleting the theme from the wp-admin site and re-uploading it. I got an error the upload failed because the stylesheet couldn't be found.
FYI I'm using SCSS that outputs a style.min.css, but that shouldn't matter. I didn't change anything else from the header, functions.php, or stylesheet linking and it was all working just fine before.
Any ideas on what's going wrong and why my stlyesheet is failing to get recognized?
Thanks a bunch.
--Update--
I'm noticing my index.php loads fine, but sub-pages look like this
In your database find the "_options table (table prefix could be what ever you have set while installing wordpress). In options table, find the entries for "template" and "stylesheet" (both are different entries) and check their corresponding values. If that is not your theme name, change it manually to your theme name.
Also, make sure your theme has style.css at its root location. That's a technical requirement for enabling the theme.
After Update
Seems like its a rewrite issue. Check if the .htaccess file exists.
If it doesn't, in admin are, go to settings->permalinks, change the permalinks settings to something different, save the settings and revert back to what ever you had set before. (Ideally you should select the "post name" setting, which generates pretty permalinks which are also SEO friendly)
This will flush the permalink rules and also create the .htaccess file if its missing.
Hope this helps.

One page won't show on wordpress after moving from live to localhost

I moved my website from live to localhost to make some modifications to it and I have encountered a problem, one page will not show up: "Oops! That page can’t be found.".
I have tried the following
1. activated rewrite_module
2. deactivated each plugin to see if anyone is causing the problem
3. recopied the database and files in case of failure during the first transfer
4. read that resetting permalinks might solve the problem. Changed permalinks to default - the page now works, but when I changed back to custom the problem is still there.
This is weird because only one page does not seem to show, every other page works fine and also there is no problem on the live version.
I ran out of solutions can any one please help?
This may be caused by the permalink or .htaccess
check the url of your page if no issues on URL then
Follow this steps once:
Go to settings-> permalink-> set it as default ->Reload or refresh
Then again now Go to settings-> permalink->postname
Your .htaccess will get update with the permalink.
This could be a problem with htaccess. When using the query string urls in wordpress, no htaccess is required, but for anything else Wordpress uses mod_rewrite.
Is htaccess turned on your localhost Apache server? In httpd.conf, AllowOverride All should be turned on in your active directory.
Is Wordpress able to create new files? Insufficient permissions might prevent it from creating the htaccess file.
Finally, check that your links are pointing to the right place. Sometimes the problem is as simple as a misspelling in your link ;) Good luck.

wordpress .htaccess & .htpasswd issue

I have a strange issue here. My client site is suspended due to spam messages by one.com. After deleting the comments, the technical support guy told me to generate .htaccess and .htpasswd file by using one.com's support page and upload it into root. Deleted old files and uploaded the new files a per the supporting guy. But site shown an internal error, then the technical guy said 'delete' both files and try. Then the home page is loading but inner pages showing 404 error.
Anyone here have a solution for this? this is the site http://www.jayabhattacharjirose.com/
Thanks in Advance
This is a problem with permalinks. Try the one of the following three solutions.
1: Set your Permalinks back to default, if things start working as expected then try re-setting Permalinks back to what you want.
2: Try going in your Dashboard to Settings > Permalinks. You don't need to change anything on the Permalinks page, but just click Save Changes at the bottom. Then check your site to see if that fixed it.
3: Try changing options on the Permalinks page if you want to change the way the URL looks from p=### to the /date/page format or others.
Reset your permalink to default and then again set it your required permalink structure so that WordPress creates a new required .htaccess file for it.
And if you have backup of your project then try to use the old .htaccess file.

Wordpress template pages not being displayed in 3.2 :|

Few months ago, I developed two template pages on wordpress 3.1 and they were working fine. Now, I installed latest wordpress software. I created a new page with the same name and selected the template. But the link is showing a "404 Not Found" error.
My site URL goes like this: http://localhost/myBlog/about
where "about page" has to use a template. The same permalink is shown when creating the page but viewing page is showing 404 error. It's weird. May be some permalink issue?
Well assuming this is a new installation and not an upgrade, I am guessing that your permalink structure is messed up. There are a couple ways to fix this. In general, Wordpress tries to modify your .htaccess file itself.
Go to your old installation and look under Settings -> Permalinks. If it is different from your new install, then change them to be the same and save. If they are the same, then change it to something else and then change it back. This should force Wordpress to resave the settings to your .htaccess file. If it can't write to the file it should tell you.
Alternatively you could look at the .htaccess file of your old installation and copy the values there over to your new installation. Although I think letting WP do it for you is probably the safer route.
If you can access your database, You need to go to the wp-options table and change the url there. The other options there. Were you working on a local server?

Resources