Skip to main content
Share Your Experience: Take the 2024 Developer Survey
3 votes
Accepted

Apache ErrorDocument returns 404 in place of 302

ErrorDocument 404 /folder/default.jpg Your explanation appears to show a misunderstanding of what this directive does. This particular directive will return /folder/default.jpg for any request (in ...
MrWhite's user avatar
  • 42.8k
3 votes
Accepted

When splitting a folder with tens of thousands of documents into several folders, how can I handle broken links?

How you do this would depend on how these files are named. You could, for instance, divide these HTML files into subdirectories according to their first letter (assuming a fairly even/normal ...
MrWhite's user avatar
  • 42.8k
3 votes
Accepted

Business Directory - duplicate content in descriptions - SEO impact

This has been discussed by Google's Andrey Lipattsev most recently in June 2016 when he stated that Google does not have a duplicate content penalty. As Andrey states It is not a penalty if ...
Chris Rutherfurd's user avatar
3 votes

Does serving a directory page as "not found" affect SEO of its sub pages?

It depends on how your products are internally linked. If the only way the crawler can get them, is through product_root - then they will be affected too. If crawler has other link pathes to products (...
Evgeniy's user avatar
  • 10.1k
2 votes

What directory structure is typically used for domains and subdomains on a Linux Apache server

wouldn't it be under /var/www/public_html/www.example.com or would it be /var/www/public_html/example This is a completely personal call as it has (in all generic cases) absolutely no technical ...
Patrick Mevzek's user avatar
2 votes

Comfortable number of server files in a folder

There is not really a "right answer" to this. Sorting by year/month is not a bad option, because it's easy to implement and it scales well. There's no need to worry about empty directories though - ...
Tim Malone's user avatar
  • 1,256
2 votes

Google indexing Wordpress wp-content directories and all internal files

Fist of all, you should block the indexation through: robots.txt (using disallow command) Server file configuration. If you are using Apache, you can deny access to folders/files with .htaccess file ...
Emirodgar's user avatar
  • 3,817
2 votes

How can I create a shared PHP $_SERVER directory to use as an include() path for shared code?

Although it's not recommended for security reasons, particularly if it's an internet-facing website because it might get abused if coded improperly, it can be configured! You'll need to enable ...
Luis Alberto Barandiaran's user avatar
2 votes

Redirect to homepage based on server error code with htaccess

If you are using .htaccess, then you are using Apache. .htaccess files are Apache's directory level configuration files. Other web servers don't use them. The specific error code should be 403. ...
Stephen Ostermiller's user avatar
1 vote

Best way to protect a directory outside of root directory?

There is no single best answer to this question as it depends on your usage case. One common solution which I would argue is particularly useful would be to change the structure like DocumentRoot ...
davidgo's user avatar
  • 7,959
1 vote

Why is it that in folder structure used for Websites generally Web Pages are on same level of hierarchy as additional content related to them?

It is about keeping the root tidy as much as anything, but also keeping an easy structure to follow For example, I tend to keep images in root/data/images, because then I only have a single /data ...
user16861522's user avatar
1 vote

Is inconsistent URL structure bad for SEO?

I think your proposed URL structure is ultimately the way to go. It gives search crawlers a better sense of the hierarchy of your site (food > {cuisine} > {recipe}). If the entire site is recipe-...
James's user avatar
  • 131
1 vote

Is there a penalty risk from Google with a page containing 70+ outbound links to high quality sites

The short answer is no if those links are natural (not trying to manipulate SERPs). When rel="nofollow" should be used? rel="nofollow" should be used in such cases: forum posts blog comments paid ...
Éric's user avatar
  • 616
1 vote
Accepted

Using symbols in a directory name

It depends on your OS, filesystem and your web server software. A common web server mirrors the directory structure. So if you are able to create the directory on your OS' filesystem your web server ...
Sergey's user avatar
  • 81
1 vote

Changing (page) directory structure, worth it or not? (SEO)

In the long term, it is better to have a solid, easy to read URL structure for both humans and SE. Quote from YOAST: Well, if you launch a new site and you have new URLs, you’ll need to redirect ...
Mnea's user avatar
  • 335
1 vote

When I have multiple .htaccess files between several sites, which is the active one?

There isn't a single "active" .htaccess file - it's a little more complex than that. Without knowing how your server is configured or what is actually in these .htaccess files, we can only assume they ...
MrWhite's user avatar
  • 42.8k
1 vote

Copyright issues with directory website

If you link to their website and use images located on their site there should be no issue. By "images on their site" I mean don't upload them to your server, hotlink to their images, assuming they ...
Steve's user avatar
  • 8,503
1 vote

Google indexing Wordpress wp-content directories and all internal files

The problem is that your server is creating an automatic page for all directories that lists all the files in that directory. In Apache, this feature is provided by mod_autoindex. If there is no,...
Stephen Ostermiller's user avatar
1 vote

What directory structure is typically used for domains and subdomains on a Linux Apache server

This can be a bit tricky a question to answer. I am glad to see Ubuntu in the question. However, what is missing is whether hosting will be used or even a control panel. This is where it gets tricky. ...
closetnoc's user avatar
  • 32.9k
1 vote

What directory structure is typically used for domains and subdomains on a Linux Apache server

Websites can be served from pretty much any directory. I’ve seen /var/www, /srv/www, and /home/username among others. According to this thread the srv directory is for “data served from this system” ...
DisgruntledGoat's user avatar
1 vote

How can I give FTP access to multiple folders in cPanel?

If you have version 64.0.22 you can create a web disk and set a directory for each user. Which they are able to view download edit from their PC mobile or other software. https://documentation.cpanel....
gabehou's user avatar
  • 552
1 vote
Accepted

Is there any real tangible benefit from replacing many one-file directories with many files in one directory?

I would like to know if the current setup is going to give me trouble in the future. You'll need to compare your setup with the filesystem the server uses and what you already have stored on the ...
Mike -- No longer here's user avatar
1 vote

Is there any real tangible benefit from replacing many one-file directories with many files in one directory?

As far as the full URL is concerned, you need to look at it in four parts. [protocol://domain name][path][file name.extension][parameters] The ranking of each part is from left to right in ...
closetnoc's user avatar
  • 32.9k

Only top scored, non community-wiki answers of a minimum length are eligible