We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [directory]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
30 views

multisite subdomain behind reverse proxy

I'm trying to run a wordpress multisite subdomain setup behind a reverse proxy to look like its sub directories. So the setup is like: www.mydomain.com/articles --> cms.mydomain.com www.mydomain.com/...
0
votes
0answers
15 views

Bedrock WordPress retro-porting to standard WP installation: is this allowed?

I am dealing with something never seen before: a WordPress website where there is not standard directories, and wp-content was moved in /app, all files was moved elsewhere and all seems to work ...
0
votes
2answers
802 views

Cannot Override Wordpress 404 for a Sub-Directory

I have wordpress installed on my root (/var/www/html) and I have a sub-directory in the root as /var/www/html/manage Both directories have it's own .htaccess files. Content of the .htaccess are as ...
0
votes
1answer
487 views

Wordpress Multisite subdomains and sharing the same upload folder

Hello, We wonder if you can help resolve two doubts about Wordpress structure. We are developing a multisite in 3 languages and would like to know about these 2 things: 1. Is it possible to develop ...
0
votes
0answers
19 views

I need advice for creating native Wordpress directory site based on native Wordpress functionality only

I created a directory site, but I used normal posts, and builder modules in post content to get the desired directory post layout, however i realized that using builder modules in post content was a ...
57
votes
6answers
33k views

Custom Post Type Templates from Plugin Folder?

I'd like to offer my custom post type as a Plugin, so that people can use it without touching their theme folder. But custom post type templates -- such as single-movies.php -- reside in the theme ...
0
votes
0answers
9 views

How do you move or rename the themes directory within wp-content?

I know it is possible to move wp-content, but is it also possible to move or rename the themes directory within it?
1
vote
1answer
701 views

Permalinks not working on second wordpress installed in a subdirect

I have a main wordpress installed on the root and now due to a long story about incompatible plugins I need to install a second full instance of wordpress in a subdirectory. The main site works fine, ...
0
votes
0answers
19 views

Can't do a src to node modules folder

I'm trying to use GLide.js and after installing it with npm, i'm trying to access it using script src This is the code i'm using <script src="<?php echo ABSPATH.'/node_modules/@glidejs/glide/...
0
votes
1answer
923 views

Why is there /index.php/ in all my links? How do I remove it?

I recently realized that my rss feed is not working, because a plugin was assuming it's under mydomain.com/feed But it isn't. I get an 404 error. I figured out that instead my feed is under ...
0
votes
0answers
27 views

Get directory of install in Wordpress

I want to get directory, where wordpress was installed from a scope of normal visitor. So when I have: /var/www/clients/client1/web8/web/tests/mywebsite/ I only want: /tests/mywebsite/ How can I ...
0
votes
1answer
748 views

Multisite, different domains, optional subdirectory, and htaccess

Here's the situation: Configuration I have a WordPress multisite setup where different sites are on different domains. Some of those sites are contained in a subfolder in their domain, some are not. ...
1
vote
1answer
1k views

Creating directory in uploads: mkdir vs wp_mkdir_p

$file_dir = WP_CONTENT_DIR . '/uploads/foo/'; Why would you need to use wp_mkdir_p when mkdir can do its job here? if(!file_exists($file_dir))wp_mkdir_p($file_dir); or if(!file_exists($file_dir))...
4
votes
4answers
9k views

Multisite in subfolder - How to make new sites to be in same level subfolders as the main site

I have following situation. I have a WP Multisite installed in subdirectory: my-domain.com/subfolder/wp-multisite-root Now normally next sites added would be created like that my-domain.com/...
0
votes
0answers
58 views

How to Install WP to Subdomain but Serve on Subdirectory?

I want to install Wordpress to a subdomain (sub.example.com) but want to serve it on the subfolder (example.com/sub). I want to do this because the root domain (example.com) is a different web app so ...
1
vote
1answer
23 views

Using a `Template Parts` folder instead of an `Includes` folder in a Custom Wordpress Theme

When I've built static sites in the past I've had an includes folder and used php if I've needed to repeat components / HTML over different pages. I've noticed in Wordpress that this functionality ...
1
vote
0answers
83 views

move_uploaded_file() not working on wordpress front end

I have working code that uploads an image from the front end and sets it as a featured image and custom field photo for a custom post type but I am unable to figure out how to set the upload path. ...
0
votes
2answers
989 views

Redirect WordPress site front end only

I have a subdomain http://blog.example.com I would like to redirect it to subdirectory as https://www.example.com/blog But not admin(/wp-admin). Admin area should be as it is http://blog....
1
vote
0answers
83 views

Missing a temporary folder.error when image is uploaded in admin Set temporary Directory - Wordpress 5.2.2

I am finding this error when I try to upload image in backend Missing a temporary folder. Tried setting temporary folder in wp-config.php with necessary permissions. Tried to set the temporary ...
34
votes
8answers
92k views

Cannot access non-wordpress subdirectories as wordpress overrides them with a 404 error

I refer to this question previously asked and not suitably answered: Wordpress overriding actual subdirectories and also Non "Wordpress" pages/code getting 404 error I have the same problem ...
0
votes
1answer
2k views

wp-content - permissions for files/folders created by apache

My wp-content folder has owner User and group www-data. The permissions are 775 for folders and 664 for files, so the server can write inside the folder. But when the server creates folder and files ...
3
votes
1answer
938 views

Site redirects to wrong url when saving settings

I have a subdomain: https://blog.example.com/ I forcibly redirects to subdirectory: https://www.example.com/blog By changing site URL and some RewriteRule on .htaccess. Now the website and admin ...
1
vote
2answers
2k views

Two Wordpress installations: One in root and one in sub directory - no images in subdir installation

The setup: I have two Wordpress installations. One in the root of the Server and one in a subdirectory, every installation has it's own database. The subdirectory installation is connected with a ...
1
vote
2answers
1k views

After changing wp from subdirectory to root I can't preview any changes to a page or post

I followed the guideline from WP Codex. Changed the site url in general settings Copied the .haccess and the index.php files from the subdirectory to the root Edited the root index.php (new copied ...
1
vote
2answers
1k views

Exclude subfolder from WP-redirect works with html but not php files

I want a certain subfolder excluded from being handled by WP with its 404 - page not found message. My problem is: example.com/Non_WP/myfile.html - shows correctly but example.com/Non_WP/myfile....
1
vote
1answer
5k views

subdirectory index.php is not working

I have setup wordpress in the root directory and at the same level I have some other directories e.g named "sq". Under sq there are subdirectories like first, second, ... under each subdirectory ...
0
votes
0answers
14 views

.htaccess for migration blog.domain.com to domain.com/blog

I'm interested in migrating blog.domain.com to domain.com/blog and kill the subdomain. I'm thinking of using .htaccess and then a search/replace plugin for all the images and links that were hardcoded....
0
votes
0answers
10 views

Server searches for wp-admin inside a nonexistent subdirectory when behind AWS Apigateway

I have an a bit convoluted problem and I am looking forward to hear if anyone has a solution. My wordpress installation lies behind an amazon Apigateway. This behaves like a CDN and serves my website ...
0
votes
2answers
414 views

How can I stop access of unregistered user in wp-content/uploads directory without using .htaccess file?

I want to give permission to only registered users into my wp-content/uploads directory and stop access for those users which are not members on my site.
0
votes
1answer
492 views

WordPress makes 404 error when going to domain folder

I have site steamshopsrbija.com and when I navigate to new WP installation on steamshopsrbija.com/v2 (it is new folder called v2)it makes like it does not exist. So WP thinks it is page ? How to fix ...
0
votes
1answer
488 views

Difference and usage of uri (e.g. get_directory_uri) and absolute path (e.g. get_directory)

What is the difference uri (e.g. get_directory_uri) and absolute path (e.g. get_directory) and when it the best time to use each?
0
votes
1answer
529 views

Store Page Template Files in a Subfolder

I have number of legal documents of different formats / layout that I need to display on a Wordpress site, however I don't want to have them as individual page-pagename.php files in the root of the ...
-1
votes
1answer
26 views

Using WordPress almost only for a contact form

I have a MediaWiki website and MediaWiki isn't easy to do layout as WordPress or Drupal are (also for forms and there are no page builders). I think to create a separate website with a separate ...
1
vote
1answer
44 views

How do you modify the WordPress directory structure?

I would like to use the following directory structure for WordPress. ├── composer.json ├── config │ ├── application.php │ └── environments │ ├── development.php │ ├── staging.php │ ...
0
votes
1answer
18 views

How can I say if a URL is a post, page, or taxonomy archive?

I'm studying for SEO purposes how a few WordPress sites (that aren't mine) are organized, link structure architecture and so on. Therefore I need to know if a specific URL of a website is a post, ...
1
vote
3answers
22k views

bloginfo('template_directory') img src

I am lazy loading some images with URLs which are added via custom fields. The lazy load plugin I'm using requires a place-holder image in the src attribute and the actual image in data-original. ...
1
vote
2answers
2k views

wp theme.. Could not create directory

Could anyone help me with this please? I am trying to install my wp theme Recital (it came out quite recently), but when I upload the zip and press install, it says Could not create directory... What ...
0
votes
1answer
47 views

how to change wp upload directory to another domain directory

both main and second domain (addon domain ) are in same host i want to find a way to change upload directory to another directory that located in another domain root. default location (first location)...
0
votes
1answer
16 views

How can I upload and password protect Javadocs in Wordpress?

I'm trying to host our software's Javadocs online behind a paywall. We tried to render the docs in Wordpress, which failed (obviously). My theory is that we could upload a folder directly to our root ...
0
votes
1answer
21 views

Rrestrict access to static pages if user is not logged in

I have a folder on my WordPress site (named documentation; see screenshot), where I host a bunch of static HTML pages. How can I restrict access to the folder, so only logged in users are allowed to ...
4
votes
4answers
4k views

Can I change get_template_directory_uri()?

This is sort of a follow up to Can I put my Wordpress theme files in another folder? I found that following ...\wp-content\themes\MyTheme - \dist - \lib - \src - \wp - All my Wordpress files ...
0
votes
0answers
9 views

How Can Wordpress Posts and Pages be Organized in Directories That Display in the URL?

We have a WP Multisite network (subdomains) and one of the subsites contains information for multiple states and we would like to organize the content so that the urls display as follows: https://...
0
votes
1answer
115 views

How to fix empty/missing theme directory?

I'm having an issue with my site, i get the following error whenever I try to access it "The theme directory "Divi-child" does not exist. ERROR: The themes directory is either empty or doesn’t exist. ...
0
votes
1answer
53 views

Install second wordpress in root subfolder, Error 404

I am trying to install wordpress in a subfolder of an existing wordpress installation. I created a the subfolder /wp unziped a fresh Wordpress download inside of that directory and added a .htaccess ...
1
vote
1answer
106 views

htaccess, site and staging in subdirectories

I have the following task and as it is a little different from most setups, I couldn't find any hints that solved my problem. WordPress for the live site was installed into a subfolder /wp1, the ....
4
votes
3answers
1k views

Could a large quantity of files in the uploads folder affect performance?

There is a site, where images are not organized into month- and year-based folders. There are more than 20 000 of images in one folder (uploads) now. When I try accessing the folder via a file browser,...
0
votes
2answers
345 views

Unable to locate WordPress content directory

I have a website where the home page is created in CodeIgniter (www.myweb.com) and the blogs are created in WordPress as a subdirectory (blog.myweb.com) and is hosted in AWS. I am trying to update the ...
0
votes
2answers
120 views

Hide/Remove Wp Directory /wp-content/uploads/

how do we hide /wp-content/uploads/2019/03/? I want my url of the picture to be like pensionwebsitewi.com.au/nnovating.jpg See SS below Thanks
0
votes
1answer
21 views

Using WordPress multisite for subsites only

I currently run a WordPress multisite for multiple e-commerce stores with the main site set to example.com and subsites as example.com/subsite1. Can I use multisite for the subsites only and run ...
0
votes
0answers
24 views

Permalink issue with Wordpress Site at domain root and another Wordpress Site in a Subfolder

If you look at my site: https://alphahedron.com/ You will see a functioning wordpress site (although not configured yet). If you go to one of my subfolder sites: https://alphahedron.com/game/...