How to avoid 403 error for image urls in (local) Wordpress through XAMPP on Windows?

Windows XP SP3 - Xampp 1.8.1 - PHP 5.4.7 - WordPress 3.5.1 - (all drives use NTFS)

I think my problem is similar to this , but these solutions seem only suitable for Unix-like OS.

I run Wordpress through XAMPP on Windows XP (SP3), and some ( but not all ) images are not displayed because I do not have access to them to access files. When you drill down (through Chrome Developer) the URL in a new tab, I get 403 error.

Is changing file permissions for me too, and if so, how to do it in Windows?

+5
source share
5

, . , version of Xampp , Version of PHP, version of Wordpress..

( xampp, ? ? ? NTFS? FAT?

, , , .

... ,

  • , 755.
  • , wp ( )
  • , php ( english characters)
  • , .
  • , URL-
  • (Dropbox ). xampp httdocs .
  • - wp.
  • / \ ( ..)
  • , 256 ( )
  • Dropbox Dropbox, ( ), , PUBLIC-URL.

, , . , , , (a-z 0-9)? , .

, , .

EDIT ​​

, , , xampp / . , , wp ( ..)

wordpress, , wp-content/themes/your_theme/

wp-content/themes/your_theme/img/

( ) :

<img src="<?php echo get_template_directory_uri(); ?>/img/yourimage.jpg" />

: get_template_directory_uri()

get_stylesheet_directory_uri() get_theme_root_uri()

, css css, , . themes/your_theme/img themes/your_theme/css/img . , , , , WITHIN css, css, wordpress one ( php).

( ), , wp-content.

themes/your_theme wp-uploads.

wp , / C:\xampp\htdocs\anneke_00\wp-content\img, , , (, ).

, Wordpress :

  • A

    • adminpress admin.
    • β†’
    • .
  • B

codex:

define( 'WP_CONTENT_DIR', $_SERVER['DOCUMENT_ROOT'] . '/blog/wp-content' ); // in wp-config

define( 'WP_CONTENT_URL', 'http://example/blog/wp-content'); // in wp-config

uplaods

define( 'UPLOADS', '/wp-content/uploads' );// in wp-config

, , .

, , , , , - - - , , wordpress..

+5

Windows "", ? "" .

, - Wordpress?

+3

XAMPP WPress, , , Windows, XAMPP c:\apps d:\apps , +

WPREss XAMPP, .

- unix? , FTPed ?

+3

, Dropbox CSS. , .

, .

+2

:

  • , - 403. "" .
  • "" "". , "" " ". " ". "", "".
  • Click the "Catalog" tab in the "Properties" window. Make sure that the β€œPermissions” section does not show any other flags except β€œRead”. This allows users to read and browse website pages. Click OK.
  • Verify the changes by opening a web browser and entering the website domain in the address bar.

Several options may vary depending on the version of Windows. I am running Windows 7. Check if the solution is working on you.

+2
source

All Articles