Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [directory]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
755 views

home page redirect loop after update to 4.8

We have a WP site in a subdirectory with a URL akin to https://example.com/m/ after upgrading from WP 4.4.2 to 4.8 the front page generates a redirect loop: never-ending 301 redirect to /m/ The ....
0
votes
1answer
17 views

Wordpress page not taking precedence over server directory

On my wordpress site, I have a page mysite.com/download. On the same server I have a directory named download, where I store files which I need to provide on download page. So the problem is that when ...
0
votes
1answer
493 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 ...
1
vote
1answer
466 views

Drawbacks to using Options -Indexes

I was wondering if there were any drawbacks to using Options -Indexes in my WordPress htaccess file to block access to directories such as uploads, etc. Wpbeginner has a post on it here
0
votes
1answer
482 views

How to create new folder in wp-content root same like upload folder?

My query is how to create new folder wp-content/any-folder-name using code when the plugin is activated.
2
votes
2answers
115 views

Organising the plugins folder in wordpress

I generally like to use a root folder structure to organise my code files. Is there a way that I can organise my Wordpress plugins folder to organise my plugins? I am looking to have two folders, ...
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))...
0
votes
1answer
64 views

Moving wp-config.php when you have a second wordpress install

I'm moving my wp-config.php file outside the wordpress1 root into /folder/ htdocs/folder/wordpress1/wordpress2 Now, how do i approach this for a second wordpress installed in a subfolder inside my ...
0
votes
1answer
93 views

Anybody knows if i could upload a leaflet or openlayers3 map to wordpress webpage?

I have an openlayers3 webmap edited by html,js and css. I want to upload my webmap into my wordpress webpage but i don't know how. I have filezilla to upload the files. Which directory is to upload ...
1
vote
2answers
320 views

Right permissions to WordPress directory

Knowing that not all files and folders have the same permissions, What are the right permissions in order to avoid hacker attacks and to allow the sites updates and upgrades? My site is installed on ...
1
vote
0answers
375 views

Media library not loading after switching the main site of multisite

I switched the subsite and main site of a multisite. Now, the images are not loading in the media library and posts of the main site. However other subsites are working fine. The images of the new ...
0
votes
2answers
998 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....
2
votes
1answer
3k views

Subfolder multisite issue. Themes and plugin files 404

I've set up a subfolder multisite. Main site: https://cs-amx.org/ Subdomain site: https://cs-amx.org/chypre You see the maintenance screen is well displayed on the main site, but not on the subdomain ...
1
vote
0answers
355 views

Creating subfolders in the media library

I'm new to WordPress. As far as I can tell, there's no built-in way to manually organize uploaded media into subfolders. There are free plugins that enable categorization, but this does not affect a ...
2
votes
1answer
30 views

Two identical wp-includes directories on server

I've recently noticed that I have two identical directories in my WordPress main directory. It's the wp-includes directory. I checked it and this is what I got: drwxr-xr-x 18 admin admin 12288 mar ...
0
votes
1answer
152 views

htaccess- to hide subdirectory slug only from the post

I have two wordpress installed, one is a travel blog in the root directory as www.mysite.com. And I have installed another in subdirectory named "fitness" under my root directory and the domain name ...
1
vote
0answers
80 views

Turn On Comments On Custom Post Types in Directory Theme

I have been trying like crazy to get comments turned on in a directory theme with Custom post types. Their support wont do much of anything but link me here and I've tried what I've found, but its ...
1
vote
0answers
23 views

Integrate wordpress into index page

I have index page which is pure HTML/CSS http://example.com/ and Wordpress blog into sub-folder http://example.com/wp/. What I want to do is to show most recent post + recent post widget from blog ...
2
votes
0answers
70 views

Suppress subdirectory from Wordpress Multisite primary URL

I just installed WordPress Multisite (version 4.7.2) in a subdirectory of my primary domain (site1.com/wordpress), and I've configured multisite to use subdirectories for all other sites. I ...
1
vote
1answer
117 views

Accessing an image folder inside public web directory

I have put a folder in the public web directory of my WordPress installation where I have some images used by a legacy system. Say its located under http://example.com/legacy-images/image1.png. I ...
3
votes
2answers
3k views

Why should I use “Organize my uploads into month- and year-based folders” option? (Cons/Pros)

What is the benefit of using (advantage/disadvantage) Organize my uploads into month- and year-based folders option? Why would I want to organize my folder structure like this ? Is there SEO ...
0
votes
1answer
43 views

How to direct users to a subcatalog

I have a home page at one.com (stolsvidda-loypelag.no) which is not made in WordPress. I have now installed WP on a subcatalog and developed new pages on this subcatalog (stolsvidda-loypelag.no/...
2
votes
1answer
44 views

What is the recommend directory in which I can upload a new library?

I am trying to install prebid.js to wordpress and I am still new to the whole structure of the wordpress installation. Is there any directory that I can safely upload to without breaking any ...
0
votes
0answers
50 views

Using same root header in subfolder wp blog - Header disapears on Single Posts

I have made a website where I have a wordpress blog in a sub-directory (/blog) I have used include($_SERVER['DOCUMENT_ROOT']."/includes/header.php"); to include my header from my root directory so ...
0
votes
2answers
39 views

The right way to go about creating a WordPress site from a static site which has WordPress installs in its subdirectory

I've created a static site for a business code in plain HTML and CSS. Along the way, I've added in two WordPress installs in subdirectories, one being a blog page and another being an eCommerce site. ...
0
votes
1answer
34 views

How use custom upload directories in filesystem and url based on media type or category

How can i choose when uploading a file or more where i want the file to go? Like i have 6 brochures and i want they go to wp-content/upload/brochures/ Other example is i have 20 images which 10 will ...
0
votes
0answers
90 views

NGINX: Remove WordPress subdirectory from url [duplicate]

I have installed WordPress core in a subdirectory as I am using composer. The root is /www/example.com/ and WordPress is placed in /www/example.com/wp/ In the root is index.php and wp-config.php. ...
1
vote
0answers
105 views

Copy Folder to another Folder using WP Filesystem

I want to copy a plugin folder to another folder, outside the WordPress installation, but in the same host, accessible via the same FTP account. Is there a way? I read something about copying ...
1
vote
0answers
229 views

How to create an Online Dictionary Using WordPress? [closed]

I want to make an online dictionary for Hebrew and English, and also want to use it in WordPress. Is this possible? (Especially using the free version?)
1
vote
1answer
112 views

get_query_var not working for subdirectory

I am using this code $pagename = get_query_var('pagename'); to get page name. Its working fine on localhost install under root directory. But when I have moved wordpress to run under subdirectory it ...
0
votes
2answers
46 views

Run multiple installs using the same wp-admin & wp-includes?

I have multiple Wordpress installations on MAMP, which all have their own file structure (wp-admin, wp-includes etc.). Because they are all development sites, it doesn't make sense to include the ...
1
vote
1answer
69 views

Can I install a new Wordpress site inside a sub-directory of an existing Wordpress site?

One of my clients has very limited resource. His current Wordpress site is installed at via FTP at /public_html: http://example.com/ We need to show him a UAT site before replacing the existing site....
0
votes
1answer
934 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
1answer
32 views

Wordpress not handling subdirectory properly

I have placed a new wordpress install in http://www.forerunnerintl.org/blog and it seems to be running and have my old posts that I updated. All the links, though, go to http://forerunnerintl.org ...
0
votes
1answer
75 views

Multisites with different root directory

I have an html static site with multiple languages (i'm using subdirectory strategy), which looks like this: domain.com/br/ And I have a WP installation at domain.com/br/blog/ I'm planning to ...
0
votes
1answer
179 views

Removing wordpress cookie from non-wordpress site

I am using wordpress for a blog on my site. So I installed wordpress in a subdirectory (eg: www.example.com/blog). I handle all of the sign in/sign out through my main site. For signing in I set a ...
1
vote
2answers
726 views

Disable to create folders for every years and months in uploads folder

How can I disable to create folders for every years and months in uploads folder? I mean there is a lot of folder under "wp-content/uploads", and the majority of them are empty. Why create WP these ...
0
votes
0answers
32 views

How do I prevent a folder from reappearing in my home directory?

I have a fairly standard Wordpress/WooCommerce site and I've found that once a day an empty folder called shop is created in the home directory. This causes issues with WooCommerce's redirect rules ...
0
votes
2answers
868 views

Resource 404 error on multisite subdirectory install

I'm am setting up my first network site on a subdirectory based network. My .htaccess is copied directly from the "Network Setup" page of the network admin panel. This is currently in the file: # ...
3
votes
1answer
940 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 ...
0
votes
1answer
641 views

Wp-CLI not working with WordPress installed with composer

I've installed a version of Wordpress using composer, and modified the default folders for the content (/wp-content) and the core (/wp). My wp-config.php gets its DB_NAME, DB_USERNAME, DB_PASSWORD ...
1
vote
1answer
4k views

Unable to update WordPress or install plugins/themes

I can't update WordPress from the back-end or install themes or plugins. Each time I try, I got this type of error: Unable to locate WordPress Root directory.. I've installed my WordPress in a sub-...
0
votes
1answer
43 views

Creating a Treeview Listing of a Directory

Within the WordPress core, I created a folder called /reports and within that directory are about 15 other folders containing .pdf's. As an example : Core File Structure /wp-admin /wp-content /wp-...
3
votes
0answers
81 views

Saving WordPress generated thumbnails in a subdirectory

I.e. an uploaded image image.jpg is stored in wp-content/uploads/2016. WordPress will generate thumbnails named image-150x150.jpg, image-300x300.jpg, and image-1024x1024.jpg in the same directory. Is ...
2
votes
1answer
1k views

Could not create directory. /var/www/html/wp-content/plugins/PLUGIN_NAME/

I feel that I have tried every solution online for the past few months with no solution. When I go to install a plugin on Wordpress, it will not work and give me the error: Unpacking the package… ...
0
votes
1answer
170 views

How to create a subcategory to a PAGE on WP?

I have a URL: www.example.com/banana-lp and I want to change it's URL to www.example.com/lp/banana I have been searching for how to do this everywhere but only found how to get this done by "posts"...
0
votes
1answer
69 views

How to visit php file in my custom directory under site root directory

I hope to create a directory wp-mybiz as same level as wp-content, wp-admin, and wp-includes under site root directory to collect my business logic codes. But if I try to visit php using url http://...
1
vote
0answers
145 views

Rewrite URLs for LeadPages due to subdirectory installation

I am using LeadPages on a WordPress site (with the LeadPages Connector plugin), and need help improving its URLs. My WP installation has its own directory (wp/) in the docroot of the server (per ...
2
votes
1answer
53 views

.htaccess for wordpress insde another wordpress

I have a main WordPress installation, with this (normal) .htaccess: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f ...
0
votes
1answer
312 views

Moved Wordpress to other folder (Windows) WAMP = 403 Forbidden

I am using a local install of Wordpress for offline development on a Windows 10 machine, with WAMP on the server side. This morning I have moved the folder containing the wordpress from c:\users\...