Download error "403 Forbidden"

Viewing 11 posts - 1 through 11 (of 11 total)
#27930

Ikezawa
Member

Hi there!

I’m a WP Download Manager 2.7.90 user in Japan.
I have a problem when I download the file uploaded. I get the message “403 Forbidden”.

I installed WordPress, for example, to “http://example.com/wp”.
In case that, I think I can confirm “http://example.com/wp” in both “WordPress Address (URL)” and “Site Address (URL)” on WordPress dashboard when clicking Settings->General.

First of all, in the above condition, I uploaded many files(xls, doc, pdf, etc) using download manager.
After the upload, I could download the file from the link set on static page.
*The link shows “http://example.com/wp/?wpdmdl=5825”, for example.

In order to publish my web page formally, I changed “Site Address (URL)” from “http://example.com/wp” to “http://example.com”.
Maybe after that, all of the uploaded files cannot be downloaded.

When I confirmed the link of “http://example.com/wp/?wpdmdl=5825”, it still showed “http://example.com/wp/?wpdmdl=5825”.
I tried changing it “http://example.com/?wpdmdl=5825” and copy&paste it to the address bar of browser, I could download the file.

After changing “Site Address (URL)”, even if I upload a file, the link still includes “wp/”.
How can I solve this problem?

Best Regards,
Kazunori IKEZAWA

#28011

Shahjada
Keymaster

I need to check it in your installation, may you please give me a temporary wp-admin login info in a private reply.

#28016

Ikezawa
Member
This reply has been marked as private.
#28017

Ikezawa
Member
This reply has been marked as private.
#28022

Tauhid
Member

Now it is fixed. The problem occurred because your home_url and site_url were not same.

#28024

Ikezawa
Member

Dear Tauhid-san,

Thank you for your confirmation.

I know home_url is different from site_url.

Since old web site was still active, I installed WordPress to http://sample.com/wp.
When I published new site which was installed to http://sample.com/wp as formal site,
I changed site_url from http://sample.com/wp to http://sample.com according to WordPress
codex Japanese version site. Because I want new site to be accessed as http://sample.com/.

Should I set both home_url and site_url to http://sample.com/wp or http://sample.com?
Previously they were http://sample.com/wp. But if so, I need to access my site from
borowser as http://sample.com/wp, don’t I?

WP Download manager only recommends that both home_url and site_url is http://sample.com/wp,
for example? But I want to access my site as http://sample.com/.

Best Regards,
Kazunori IKEZAWA

#28026

Ikezawa
Member

Dear Tauhid-san,

After I sent the reply, I updated the theme which I had applied to my site.
And then, I tried to download a certain file from my site and the download was successful.

The home_url is still different from site_url.
Although I didn’t do anything special, the problem was solved.

Anyway I appreciate your help.
* I will delete temporary wp-admin after I will send this reply.

Best Regards,
Kazunori IKEZAWA

#28101

Ikezawa
Member

Hi there!

Yesterday, since I noticed Download Manager 2.7.91 was released,
I installed it.

As a result, download error “403 Forbidden” occurred again.
But I’m not sure whether the latest package caused this issue.
Because I also updated the theme for my site.

As I wrote before, home_url is different from site_url like the following.
home_url : http://example.com/wp
site_url : http://example.com

And the following file is written like the following.
http://example.com/index.php

/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . ‘/wp-blog-header.php’ );
-> require( dirname( __FILE__ ) . ‘/wp/wp-blog-header.php’ );

By setting above, my web site can be seen when typing URL as “http://example.com”.
But the URL for download is displayed, for example, as “http://example.com/wp/?wpdmdl=5813”
when I hit the mouse cursor to the URL.

WP Download Manager recommends that site_url should be home_url? If so, do I have to install
WordPress to http://example.com and I have to set home_url and site_url to “http://example.com”.
Can’t WP Download Manager generate the file download URL by referring site_url?
I spite that I don’t know the background of WP Download Manager, I’m sorry to say such that.
But I would like to know how to solve the problem without re-installing WordPress.

Best Regards,
Kazunori IKEZAWA

#28178

Ikezawa
Member

Dear Sir,

This problem seems to have been resolved.

I reconfirmed the setting in case of the following.
home_url : http://example.com/wp
site_url : http://example.com

I copied http://example.com/wp/index.php to http://example.com/index.php and change this index.php like the following.

/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . ‘/wp-blog-header.php’ );
-> require( dirname( __FILE__ ) . ‘/wp/wp-blog-header.php’ );

After that, I renamed original http://example.com/wp/index.php as index.php_ORG.
I’m not sure but this seems to have caused “Download error”.

I renamed inedx.php_ORG to index.php and change like the following.

/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . ‘/wp-blog-header.php’ );

For the time being, downloading function seems to work well.

Best Regards,
Kazunori IKEZAWA

#127310

Lizz Whitacre
Participant

We are experiencing this issue as well but not understanding the home_url versus site_url issue. Can you please help us?

#127390

Nayeem Riddhi
Moderator

Hi @lizzwhitacre,

Please open a separate ticket for your issue.

Thanks.

Viewing 11 posts - 1 through 11 (of 11 total)

The topic ‘Download error "403 Forbidden"’ is closed to new replies.