I have an installation of TYPO3 and an installation of Wordpress and want to have a sitemap.xml for search engines which includes sites from both systems.
Currently the sitemap of the TYPO3 installation is generated with typoscript (I basically use this generator). In Wordpress there is no extension installed to generate a sitemap yet.
Edit: TYPO3 is installed in domain.tld/ and Wordpress is in a subdirectory domain.tld/blog.
I am open to use any way to merge sites from both systems in one sitemap. That could either be extensions for one or both CMS or a script running separately. Or maybe there is a way to parse the sitemap.xml from Wordpress in typoscript.
Does anyone know a way to merge the sitemaps?
There is not direct way to handle this. Typoscript can not parse external files. The only way to get a merge is creating a new simple extension which gives you the output of both sitemaps merges.
Related
I wonder, how websites like https://wpsec.com can find my wordpress themes and plugins.
When I tried to access the directory mydomain.com/wp-content/themes/my-theme, I got 404 but how do they get this.
Are my firewalls and security malewares plugins are useless?
After thinking about this my conjecture on how this works is this:
Almost all plugins/themes have .css and/or .js files. For plugins these are stored in the plugin's installation directory - .../wp-content/plugins/some-plugin-directory. The URLs of the HTTP requests for these would look this - httpx://some.host.com/wp-content/plugins/some-plugin-directory/js/some-javascript-file.js. From these requests wpsec can extract 'some-plugin-directory' which is what WordPress uses to identify a plugin. If the plugin is in the WordPress repository then wpsec can download the entire plugin and provide more information. If the plugin is proprietary then wpsec probably only has access to the publicly accessible .js and .css files. On my installation I have a proprietary plugin and wpsec found the installation directory - 'some-plugin-directory' but did not report the version probably because it cannot access the readme.txt or any of the .php files. So, if this conjecture is correct if a plugin only has PHP i.e. no .css, no .js and also no images stored in its installation directory then wpsec should not be able to detect it. Of course the same reasoning applies to themes.
My client currently has a website on Wordpress which runs through a subdirectory (www.myclientsite.com/subdirectorysite1/). This website displays rental properties. They have asked me to create an additional website with an additional subdirectory (www.myclientsite.com/subdirectorysite2/) for a second prperty, and also create a new webpage for www.myclientsite.com which acts as a portal for the two property sites.
I have never done this before on Wordpress, and I've been exploring the possibility of using Wordpress Multisite. Does anybody have any experience with this? Or advice on what would be the best way to lay out these sites for both future page development, and daily management?
Yes, you can do this using creating a new folder 'subdirectorysite2' and then go for a fresh Wordpress installation.
If you have limited database creation access on the server, in that case, you can create a new template file on your existing WordPress theme and assign the new template to a page. After that change, the link of the page to subdirectorysite2. So that you can generate your desired URL i.e. www.myclientsite.com/subdirectorysite2/
And remember to modify .htaccess file as per your requirement.
You can use Wordpress multisite feature. https://codex.wordpress.org/Create_A_Network
I have simple 4.2 WP site with theme Twenty Twelve and Polylang plugin ver. 1.7.6. in domain mysite.co.nf. Now I deciced to move it to another domain mysite.newdmn.eu. I have copyed all files from old domain to new one using FTP. Then have exported DB to SQL script. Have edited SQL script by replacing strings mysite.co.nf with mysite.newdmn.eu using Notepad++. Then I have imported this SQL to my new site DB, edited wp-config to connect to new DB and from first point of view site is running except several things:
No header picture. (Actually this is not problem, but strange..)
No multi language icons and it is not possible to switch between languages.
Can't open one page - new server shows that it not exists. This is simple text page that looks the same like other ones. Link of this page looks the same structure like other pages.
How to solve these problems?
And what is best practices while moving WP sites?
Edit SQL by using editor is always a bad way to update the domain url. Because themes and plugins may serialize php objects into string format and store it in DB. If you replace domain url by using editor, it may break your site.
WordPress codex mentioned : https://codex.wordpress.org/Moving_WordPress#Changing_Your_Domain_Name_and_URLs
If you do a search and replace on your entire database to change the
URLs, you can cause issues with data serialization, due to the fact
that some themes and widgets store values with the length of your URL
marked. When this changes, things break.
The suggested way is to use search and replace tool like https://interconnectit.com/products/search-and-replace-for-wordpress-databases/, or some backup plugin like Duplicator or Backup Buddy.
Also suggested this well written article about WordPress migration.
http://www.smashingmagazine.com/2013/04/moving-wordpress-website/
For me, I always do it by myself without using any plugins. My steps is as follows:
1.move all files under wp-content
2.import db
3.do search and replace by using https://interconnectit.com/products/search-and-replace-for-wordpress-databases/
Few times I had to update not only domain but also file path on server.
But the best you can do is using Backup Buddy (paid) or Duplicator (free) plugin (or any other that fits you, but those two are the best imo, and I do at least few migrations a month).
I'm trying to get WordPress to power a blog on an existing php site. I just want to have a directory www.mysite.com/blog and have wordpress running the pages in that directory, using the same look and feel as the rest of the site.
I'm using the method described in this article :
http://codex.wordpress.org/Integrating_WordPress_with_Your_Website
I already have everything up and running, but I can't find the appropriate php files to edit the css in the wordpress template. I don't know wordpress at all, so I can't trace back to the correct file without knowing the wordpress syntax.
I'm using the WordPress TwentyTwelve them. Can somebody tell me which php and css files control the right hand menu layout?
You can find the relevant files here:
http://yourdomain.com/wp-content/themes/twentytwelve/
The main stylesheet is style.css and the php files are all in there as well to edit to your liking.
NB. if you included the wordpress folder, it will be .../wordpress/wp-content/ etc.
I am trying to develop a bilingual site based on WordPress (bilingual sites in Quebec are a necessary reality). The problem is I find automated translators (i.e. Google Translate) do not get the context right.
I noticed during a WordPress install (with Fantastico) I can select the folder where WordPress would live. Would it possible to have set up like:
public_html
|-index.html
|-english_site
|-wordpress install for english
|-french_site
|-wordpress install for french
Is it feasable to have both WordPress installs hook into the same database and media uploads? Or is there a better way to avoid automated translators?
I'd definitely recommend, WPML plugin for handling multilingual sites.
One admin area, every bit of content can have multiple hand crafted translations. Including pages, posts, menus etc. Plugins also get translated if they contain the relevant translation files.
Also supports sub domains, so you could do french.yourdomain.com or yourdomain.com (english / default).
Just notice that if you install any multilingual plugin, you should NOT have multiple WordPress instances. Multilingual plugins use a single WP install to serve several languages.
The language-directories structure that you see in the URL is a virtual thing. You shouldn't have real directories on the server. WordPress should be installed in the root path, not in a language directory.
If you're looking to serve languages from different domains (or subdomains), have a look at this FAQ for how to setup on your DNS and Apache.