Title: Please Help ! 404 errors for index.php, 403 errors for uploads
Last modified: August 19, 2016

---

# Please Help ! 404 errors for index.php, 403 errors for uploads

 *  [Web Master](https://wordpress.org/support/users/web-master/)
 * (@web-master)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/please-help-404-errors-for-indexphp-403-errors-for-uploads/)
 * I finally succeeded in making a first trial post to my ebryonic blog… “succeeded”
   is a bit of an exageration…
 * 2 things :
 * 1) when I click on the link of this post, in my blog I immediately get the error:“
   The requested URL /index.php was not found on this server.
 * Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument
   to handle the request.
    Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8e-fips-
   rhel5 mod_bwlimited/1.4 PHP/5.2.10 Server at [http://www.XXXX.net](http://www.XXXX.net)
   Port 80
 * 2) when I try to associate an image to this post, when I try to upload an image
   from the “Edit” this “Post” area, I get this message : The uploaded file could
   not be moved to /home/domain/public_html/my_blog/wp-content/uploads.
 * I have played with all of the .htaccess files, giving them all maximum authorizations,
   that does not work…
 * I have uploaded the image to a totally unblog related directory on the same server,
   which WordPress accepted, but will not show in my blog…
 * when I click on the link that concerns my post I get the above mentioned : “The
   requested URL /index.php was not found on this server.
 * Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument
   to handle the request.
    Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8e-fips-
   rhel5 mod_bwlimited/1.4 PHP/5.2.10 Server at [http://www.XXXX.net](http://www.XXXX.net)
   Port 80
 * It would seem to be a series of .htaccess problems.. but I am totally lost here
   can anyone please, PLEASE, help me ?
 * clueless webmaster

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/please-help-404-errors-for-indexphp-403-errors-for-uploads/#post-1362750)
 * A link to your site might help.
 * With regard to your uploads, have you tried changing the permissions on the wp-
   content directory to 766? If you still have problems, try 767 or 777. Once your
   uploads are working, change the permissions on wp-content back to 755 again and
   check that everything still works OK.
    [http://codex.wordpress.org/Changing_File_Permissions](http://codex.wordpress.org/Changing_File_Permissions)
 *  Thread Starter [Web Master](https://wordpress.org/support/users/web-master/)
 * (@web-master)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/please-help-404-errors-for-indexphp-403-errors-for-uploads/#post-1362843)
 * Hi esmi, thank you SO MUCH for your help !
    my blog is here : [http://www.hotgaylinks.net/gay_porn_blog/](http://www.hotgaylinks.net/gay_porn_blog/)
   and yes, I have tried playing with the permissions and that changed nothing….
   there seems to be alot of directory confusion, permalink and .htaccess confusion…
   It all seems to be the same problem, so here are the symptoms of what seems to
   be one and the same problem : I am trying to use this custom structure :
 * `/%year%/%monthnum%/%day%/%category%/%tags%/%postname%/`
 * or
 * `/index.php/%year%/%monthnum%/%day%/%category%/%tags%/%postname%/`
 * they do not work, however for some reason, if I remove %tags%/, this DOES work:
   `/%
   year%/%monthnum%/%day%/%category%/%postname%/`
 * HOWEVER, the permalink settings page tells me “You should update your .htaccess
   now.”
 * and to add this :
 *     ```
       <IfModule mod_rewrite.c>
       RewriteEngine On
       RewriteBase /gay_porn_blog/
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule . /gay_porn_blog/index.php [L]
       </IfModule>
       ```
   
 * which is exactly what I am using… so there seems to be a problem with directory
   structures ?
    BTW, I also have this in the .htaccess file :
 *     ```
       # -FrontPage-
   
       IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
       Options +FollowSymlinks
   
       <Limit GET POST>
       order deny,allow
       deny from all
       allow from all
       </Limit>
       <Limit PUT DELETE>
       order deny,allow
       deny from all
       </Limit>
       AuthName hotgaylinks.net
       AuthUserFile /home/hotgayli/public_html/_vti_pvt/service.pwd
       AuthGroupFile /home/hotgayli/public_html/_vti_pvt/service.grp
   
       # BEGIN WordPress
       <IfModule mod_rewrite.c>
       RewriteEngine On
       RewriteBase /gay_porn_blog/
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule . /gay_porn_blog/index.php [L]
       </IfModule>
       # END WordPress
   
       # BEGIN WPSuperCache
       <IfModule mod_rewrite.c>
       RewriteEngine On
       RewriteBase /gay_porn_blog/
       AddDefaultCharset UTF-8
       RewriteCond %{REQUEST_URI} !^.*[^/]$
       RewriteCond %{REQUEST_URI} !^.*//.*$
       RewriteCond %{REQUEST_METHOD} !POST
       RewriteCond %{QUERY_STRING} !.*=.*
       RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress|wp-postpass_).*$
       RewriteCond %{HTTP_USER_AGENT} !^.*(Android|2.0\ MMP|240x320|AvantGo|BlackBerry|Blazer|Cellphone|Danger|DoCoMo|Elaine/3.0|EudoraWeb|hiptop|IEMobile|iPhone|iPod|KYOCERA/WX310K|LG/U990|MIDP-2.0|MMEF20|MOT-V|NetFront|Newt|Nintendo\ Wii|Nitro|Nokia|Opera\ Mini|Palm|Playstation\ Portable|portalmmm|Proxinet|ProxiNet|SHARP-TQ-GX10|Small|SonyEricsson|Symbian\ OS|SymbianOS|TS21i-10|UP.Browser|UP.Link|Windows\ CE|WinWAP).*
       RewriteCond %{HTTP:Accept-Encoding} gzip
       RewriteCond %{DOCUMENT_ROOT}/gay_porn_blog/wp-content/cache/supercache/%{HTTP_HOST}/gay_porn_blog/$1/index.html.gz -f
       RewriteRule ^(.*) /gay_porn_blog/wp-content/cache/supercache/%{HTTP_HOST}/gay_porn_blog/$1/index.html.gz [L]
   
       RewriteCond %{REQUEST_URI} !^.*[^/]$
       RewriteCond %{REQUEST_URI} !^.*//.*$
       RewriteCond %{REQUEST_METHOD} !POST
       RewriteCond %{QUERY_STRING} !.*=.*
       RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress|wp-postpass_).*$
       RewriteCond %{HTTP_USER_AGENT} !^.*(Android|2.0\ MMP|240x320|AvantGo|BlackBerry|Blazer|Cellphone|Danger|DoCoMo|Elaine/3.0|EudoraWeb|hiptop|IEMobile|iPhone|iPod|KYOCERA/WX310K|LG/U990|MIDP-2.0|MMEF20|MOT-V|NetFront|Newt|Nintendo\ Wii|Nitro|Nokia|Opera\ Mini|Palm|Playstation\ Portable|portalmmm|Proxinet|ProxiNet|SHARP-TQ-GX10|Small|SonyEricsson|Symbian\ OS|SymbianOS|TS21i-10|UP.Browser|UP.Link|Windows\ CE|WinWAP).*
       RewriteCond %{DOCUMENT_ROOT}/gay_porn_blog/wp-content/cache/supercache/%{HTTP_HOST}/gay_porn_blog/$1/index.html -f
       RewriteRule ^(.*) /gay_porn_blog/wp-content/cache/supercache/%{HTTP_HOST}/gay_porn_blog/$1/index.html [L]
       </IfModule>
       # END WPSuperCache
       RewriteRule ^post/([0-9]+)?/?([0-9]+)?/?$ /index.php?p=$1&page=$2 [QSA]
       ```
   
 * Again, Thank you for your help, I have been turning in circles for weeks !
 * best wishes,
 * clueless webmaster
 *  Thread Starter [Web Master](https://wordpress.org/support/users/web-master/)
 * (@web-master)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/please-help-404-errors-for-indexphp-403-errors-for-uploads/#post-1362846)
 * Hello again,
 * well this is getting more and more frustrating…
 * NOW,
 * even this permalink is no longer working :
    /%year%/%monthnum%/%day%/%category%/%
   postname%/
 * and now, without changing anything is IS leading to my post, but with the link:
   [http://www.hotgaylinks.net/gay_porn_blog/2010/01/28/ethnic/black/tags/gay-latino-studs-three-jock-sex-latin-hunks/](http://www.hotgaylinks.net/gay_porn_blog/2010/01/28/ethnic/black/tags/gay-latino-studs-three-jock-sex-latin-hunks/)
 * so more confusion : why does “tags” show up in the link when I remove `%tags%/`
   from my link… ?
 * anyway, this is quite a challenge. Thank you again for your patience and your
   help !
 * best wishes,
 * clueless
 *  Thread Starter [Web Master](https://wordpress.org/support/users/web-master/)
 * (@web-master)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/please-help-404-errors-for-indexphp-403-errors-for-uploads/#post-1362847)
 * I am wondering now… should I have this in my .htaccess file ? it comes from the.
   htaccess just inside my domain.net/ and my blog is my_domain.net/myblog/ :
 * # -FrontPage-
 * IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
    Options +FollowSymlinks
 * <Limit GET POST>
    order deny,allow deny from all allow from all </Limit> <Limit
   PUT DELETE> order deny,allow deny from all </Limit> AuthName hotgaylinks.net 
   AuthUserFile /home/hotgayli/public_html/_vti_pvt/service.pwd AuthGroupFile /home/
   hotgayli/public_html/_vti_pvt/service.grp
 * is this bit out of place perhaps ?
 * best wishes,
    clueless
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/please-help-404-errors-for-indexphp-403-errors-for-uploads/#post-1362864)
 * Try removing:
 *     ```
       # BEGIN WordPress
       <IfModule mod_rewrite.c>
       RewriteEngine On
       RewriteBase /gay_porn_blog/
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule . /gay_porn_blog/index.php [L]
       </IfModule>
       # END WordPress
       ```
   
 * from your .htaccess file in root and placing it an .htaccess file in your **WordPress**
   folder.
 *  Thread Starter [Web Master](https://wordpress.org/support/users/web-master/)
 * (@web-master)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/please-help-404-errors-for-indexphp-403-errors-for-uploads/#post-1362875)
 * Hello again ESMI,
 * And again, Thank you very much for your help.
 * I don’t have that is my root .htaccess file….
 * it contains only :
 * # -FrontPage-
 * IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
    Options +FollowSymlinks
 * <Limit GET POST>
    order deny,allow deny from all allow from all </Limit> <Limit
   PUT DELETE> order deny,allow deny from all </Limit> AuthName hotgaylinks.net 
   AuthUserFile /home/hotgayli/public_html/_vti_pvt/service.pwd AuthGroupFile /home/
   hotgayli/public_html/_vti_pvt/service.grp
 * BUT, after emptying cache, my permalinks seem to be working just fine since I
   removed “tags” from the code… I am just using this : /%year%/%monthnum%/%day%/%
   category%/%postname%/ and it seems to be fine…
 * HOWEVER, there does seem to be some directory confusion at some point, I am receiving
   a billion e-mails telling me :
 * “A user tried to go to [http://www.hotgaylinks.net/gay_porn_blog/gay_porn_blog/wp-content/themes/btEX/BTextended/images/feed.gif](http://www.hotgaylinks.net/gay_porn_blog/gay_porn_blog/wp-content/themes/btEX/BTextended/images/feed.gif)
   and received a 404 (page not found) error. It wasn’t their fault, so try fixing
   it.
    They came from [http://www.hotgaylinks.net/gay_porn_blog/&#8221](http://www.hotgaylinks.net/gay_porn_blog/&#8221);
 * OBVIOUSLY, the problem is at : [http://www.hotgaylinks.net/gay_porn_blog/gay_porn_blog/wp-content/](http://www.hotgaylinks.net/gay_porn_blog/gay_porn_blog/wp-content/)
 * (/gay_porn_blog/gay_porn_blog/) perhaps the problem is theme related ? but something
   somewhere is trying to find my WordPress folder “gay_porn_blog” one directory
   deeper than it is…
 * BUT I finally got the permalinks to work correctly… so I am, as always,
 * LOST & CLUELESS.
 * any ideas ? thank you for your help.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Please Help ! 404 errors for index.php, 403 errors for uploads’ is closed
to new replies.

## Tags

 * [htaccess](https://wordpress.org/support/topic-tag/htaccess/)
 * [permalinks](https://wordpress.org/support/topic-tag/permalinks/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 2 participants
 * Last reply from: [Web Master](https://wordpress.org/support/users/web-master/)
 * Last activity: [16 years, 4 months ago](https://wordpress.org/support/topic/please-help-404-errors-for-indexphp-403-errors-for-uploads/#post-1362875)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
