What is the problem?
WordPress uses "pretty permalinks". These are clean page addresses such as /about-us. To make them work, WordPress catches every address that is not a real file or folder. If you have your own folder, like /shop-app, WordPress may show a 404 error instead of your folder.
The rules live in a file called .htaccess. It is a small settings file that the Apache web server reads. Most hosting plans use Apache or something that works like it. Ask Hostvento support if you are not sure about yours.
.htaccess can take your site down. Download a copy of the file as a backup before you edit it.Steps
- Log in to your hosting control panel and open File Manager.
- Go to the folder where WordPress is installed, often
public_html. - Turn on Show Hidden Files, since
.htaccessstarts with a dot. - Right-click
.htaccess, and choose Download to keep a backup. - Right-click it again and choose Edit.
- Find the block that begins with
# BEGIN WordPress. - Add a new line just above that block, as shown below.
- Save the file.
- Open the folder address in your browser to test it.
RewriteEngine On
RewriteRule ^shop-app/ - [L]
# BEGIN WordPress
...
This rule says: if the address starts with shop-app/, stop and do nothing else. The [L] means "last rule". WordPress will then leave that folder alone. Replace shop-app with your own folder name.
Ignore more than one path
Use a bar character between the names:
RewriteRule ^(shop-app|files|tools)/ - [L]
This ignores three folders in one line.
Why put it above WordPress?
The server reads rules from top to bottom. Your rule must come first so it works before WordPress takes over. WordPress may rewrite its own block, so never put your lines inside the # BEGIN WordPress and # END WordPress markers.
index.html or index.php file inside.If the folder still shows a 404, open a support ticket.
Quick recap
- WordPress can hide real folders behind its pretty addresses.
- Add a
RewriteRulewith[L]to.htaccess. - Place it above the
# BEGIN WordPressblock. - Download a backup of the file before you edit it.