How Can I Upload Manual Sitemaps To Wordpress Multisite Subdirectories? - wordpress

I have a Wordpress Multisite and for each geo we have a subdirectory site. E.g, site.com/us site.com/uk
The issue I am facing is uploading manually created sitemaps. In case of normal WP sites, I can just upload the sitemap to the root directory but in this case I am not sure how to do that. I am looking to upload separate sitemap for separate geos.

Related

create a htaccess rewrite rule from subdomain to subfolder

There was some discussion on this topic which i have read through, but it does not help my current situation.
Problem.
I have a wordpress mu site located on a subdomain (site.website.com)
The first subsite i created is (site.website.com/subsite1)
I want to serve (site.website.com/subsite1) from (website.com/subsite1)
I know this is possible because i already do it in a different way. I have a wp mu located in a subdolder.(site.website.com/mainsite) and have created subsites at (site.website.com/subsite1) (site.website.com/subsite2) (site.website.com/subsite3)
I did this by manaually editing the site url in wordpress admin, then creating a folder in the home directory, with the same name as the subsite and placing a htaccess file with rewrite rules in it.
Now i want to achieve the same thing with a multisite install in a subdomain, pointing to a folder in the apex domain with a htaccess file in it.
The problem is that im lacking in knowlege when it comes to rewrite rules. Any experts please step up.

Can I install wordpress on domain.com with some non-wordpress pages?

I have a website example.com. I have a generic landing page on domain.com that I want to replace with a Wordpress site, but I do have several webpages that I care about. They are all static pages:
example.com/hello
example.com/goodbye
example.com/hello/canada
example.com/hello/usa
example.com/hello/mexico (you get the idea)
example.com/help
Wordpress question: I want to install Wordpress on example.com, while keeping my existing pages in tact:
example.com -- wordpress
example.com/blog/a-blog post -- a blog post from wordpress
example.com/blog/another-blog post -- a blog post from wordpress
example.com/category/something -- a wordpress category
And still having existing non-wordpress page at:
example.com/hello
example.com/goodbye
example.com/hello/canada
example.com/hello/usa
example.com/help
I will install Wordpress on an AWS EC2 instance. My website currently exists on another server. Should I keep the Wordpress install on a separate server? Or use a single server to serve both Wordpress and the static page? I use hover to manage my domain’s DNS settings. What is my best path forward?
Just placing the files in your root wordpress folder should work. And for simplicity's sake unless you have drastically different requirements of the static pages I would think they should be on the same server as the wordpress install.
Likely you'll want to separate out your styles/assets from your wordpress install (or use unique names) in which case each static page could have it's own folder matching the name of the page
/hello
style.css
hello.html
hello.js
Alternatively you can just create template files for each of your static pages. You don't have to use the loop, sidebar, header, from the rest of the site in custom page templates. This would allow the static pages access to optimizations affecting your whole site: SEO, security, load speed plugins, sitemaps.
Probably don't need to say but just make sure to backup your static pages before your wordpress install. You can likely bundle these with your wordpress theme. But --at least a few years ago-- the directory in which you install wordpress needed to be clear before successful installation.

Upload PHP folder to FTP without Wordpress overriding routes

How can I upload a folder like a regular site and place it within a Wordpress folder but not have wordpress override the URLs for that particular folder.
Thanks
Your question is not really how you can do this, but why do it?
WordPress is overriding your URLs because of its own permalinks and rewrite rules in the .htaccess that handles the folder Wordpress is installed in and all subdirectories. Read https://codex.wordpress.org/htaccess
In order to place a "regular" site within a WordPress folder, you're going to have to work out some complex regex expressions https://stackoverflow.com/questions/tagged/regex and integrate them into Wordpress's own rewrite rules so both sites work. And then, when you change WordPress's own permalinks from admin and WordPress writes changes to .htaccess https://stackoverflow.com/questions/tagged/.htaccess, your own custom rules won't function anymore.
Directories below a directory with an .htaccess file will inherit those rewrite directives, so you can "negate" rewrite rules by putting a blank .htaccess file - or one with your own rules in it - in that folder. And this directory inheriting method is further controlled by server directives, if you have access to Apache httpd; which you won't, unless you're running your own server.
Again, why make things so complex? If you're going to use WordPress, integrate your content and site into WordPress. It is straightforward to integrate your own PHP and MySQL data into a WordPress site through the use of page templates. If you want a plain PHP/MySQL site in the same hosting area as WordPress, keep it separate.

Hosting an example WordPress site

I applied for a role and part of the application process requires me to build a WordPress site and make it live on a existing domain I own. This will assist the hiring company (example "WebCompany") to view and assess.
I have created the WordPress site locally and want to upload to my domain (e.g. www.mydomain.com.au) with a url extension like www.mydomain.com.au/webcompany.
Would it be as simple as just FTP the WordPress site to the root directory? Or do I need to set things up differently for it to work?
I recommend to install wordpress on your url with the same version, and use this plugin, I use it and helps even if you have info in your database, and your themes, all the stuff,
and then you have to active the plugins on the web, choose permalinks options.
WORDPRESS ALL-IN ONE PLUGIN
for the extension / what you mean really? you want wordpress on a /namefolder
because you can install wordpress in a folder and there's your extension, but if you have already wordpress installed on the public_html/ you can use multisite wordpress options.
Here is the info and I did it with this:
MultiSite Wordpress

Get working dir from wordpress.com site

I'm not a WordPress expert here but I got a account and a preminum version with a template but I want to download the entire directory so I can modify php files, styles etc.
How do I do this and also how do I upload it to the wordpress site itself since it's live.
Thanks
Unfortunately, you cannot do that on wordpress.com site.
But you can edit some files from within your wordpress admin panel editor.

Resources