technically it must make requests to a file, is index.php of the theme twentytwenty visible in your browser?
your guide indicates read and write permissions.
Read only
-rw-r–r– 1 wp-user wp-user 177 Nov 18 15:21 index.php
You have Read and Write -rw-rw-r–
Only example , not edit any configuration https://www.a2hosting.com/kb/developer-corner/apache-web-server/directory-index-listings
you just have to enable directoryindex
https://prnt.sc/qja7zv
I get the same error as before i tried to add Options +Indexes to my .htaccess file but that didnt work.
My .htaccess file : https://prnt.sc/qja8i6
And i was looking at the link you sent (https://httpd.apache.org/docs/2.4/mod/mod_dir.html#directoryindex)
But what i get from that is that i need to set the DirectoryIndex to where my index.php file is but it does not say in wich config i need to add that line.
-
This reply was modified 6 years, 4 months ago by
alivion.
Directoryindex means when you connect remotely to a folder he moves you to the file you have set.
Search with browser, directoryindex https://help.ubuntu.com/lts/serverguide/httpd.html (for ubuntu and apache 2)
Ah okay but do you know where i need to add this code because it does not say where.
<Directory "/twentytwenty">
DirectoryIndex index.php
</Directory>
https://wordpress.org/support/topic/theme-403-forbidden/#post-12292401
The DirectoryIndex is the default page served by the server when a user requests an index of a directory by specifying a forward slash (/) at the end of the directory name.
For example, when a user requests the page http://www.example.com/this_directory/, he or she will get either the DirectoryIndex page if it exists, a server-generated directory list if it does not and the Indexes option is specified, or a Permission Denied page if neither is true. The server will try to find one of the files listed in the DirectoryIndex directive and will return the first one it finds. If it does not find any of these files and if Options Indexes is set for that directory, the server will generate and return a list, in HTML format, of the subdirectories and files in the directory. The default value, found in /etc/apache2/mods-available/dir.conf is “index.html index.cgi index.pl index.php index.xhtml index.htm”. Thus, if Apache2 finds a file in a requested directory matching any of these names, the first will be displayed.
https://httpd.apache.org/docs/2.4/sections.html#file-and-web
server config (httpd.conf, htaccess), virtual host https://httpd.apache.org/docs/2.4/mod/core.html#directory
Yeh okay but what do i need to change then so that my theme starts working again because nothing is wrong with anything else except my themes.
I’m pretty a noob to this so if you could give me a dummy explanation.