Folders getting error 404
-
Hi,
I recently enable network on my sites.
Now all my sub folders are returning 404 error.
for example.. http://www.mydomain.com/downloads/filename.rar is returning 404 error eventhough the file is there.
My network WP is setup to use sub domain
Thanks
-
Did you set the htaccess correctly for subdomains and not subfolders? There should be no effect on your subfolders unless you made a subdomain called downloads.
Also did you make your subdomains set up for wildcards correctly on your server?
I believe i set things up correctly as far as the sub domain settings are concern because I can add site (subdomain) without a problem.
I don’t see any problem with my network WP.
It just my existing sub domains and sub folders prior to activation of the network is returning 404 with the current wp theme.
Can I PM you or email you so I can give you the domain?
Thanks for the reply.
Not unless you wanna pay me (not a joke – support here is free. Everything else, except my own plugins, not so much).
I believe i set things up correctly as far as the sub domain settings are concern because I can add site (subdomain) without a problem.
Okay so you made domain.com and it has subdomains of site1.domain.com and so on.
If you make a folder off domain.com, like ‘test’, you SHOULD be able to access it at <anysubdomain>.domain.com – it works on my site http://ipstenu.org/test/ and http://code.ipstenu.org/test/ BOTH point to /public_html/test (a physical subfolder) with a bit of PHP to tell you where you came from. EVEN IF you use the same subfolder name as a subdomain, you’re fine.
What’s your FULL .htaccess file?
I’m thinking it;s where the wildcard subdomain is added at your webhost.
Are you on Plesk?@ipstenu, Here is my .htaccess
RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] # uploaded files RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule . index.php [L]@andrea_r, I am on cPanel
How did you set up wildcard subdomains in cpanel?
I logged in to my cpanel, go to sub domain section. added “*” (without the quotes) subdomain pointed to the root of the main site.
And does your *host* support wildcard subdomains?
Just becasue you can add them in cpanel doesn’t mean they are set up on the server. Or that the host even wants you to use them…
I did not bother to ask that specific but they said WP Network is supported.
And since I can add sites from the WP-ADMIN side, I presume it is supported.
Can I still add sub domain WP sites even if my host does not support it?
Anyway, i will ask that to my host.
Thanks
Can I still add sub domain WP sites even if my host does not support it?
Yes, but you have to add each subdomain manually and force point it to /public_html/
And since I can add sites from the WP-ADMIN side, I presume it is supported.
bad assumption. WP can add them to the db, and show them on the list, but has to rely on the server to serve it.
just like you can write a hundred posts, but if you hose your permalinks they won’t show on the front end.
but my site is ok. when I create sites, I can browse it immediately without having to add sub domain from c panel and pointing it.
The only problem is that sub domains prior to installation of WP netword is not resolving.
The only problem is that sub domains prior to installation of WP netword is not resolving.
Huh? Translation please? I THINK you’re saying this:
Any subdomain I made BEFORE enabling wildcard subdomains no longer works.
that sounds the same to me. Is there any difference?
Sorry if I did not say it right. I’m not a native english speaker.
But honestly, I can’t say much difference between the two because the time I enable wildcard subdomain is the same time I installed WP network. I honestly can’t tell which one causes the problem.
Okay. Ask your host about the wildcard subdomains first. But somehow you broke the named-subdomains, so I THINK you need to fix that first.
The topic ‘Folders getting error 404’ is closed to new replies.