I have pages named by products name. For example : red phone , intel cpu Atom, etc. It´s ok. I have this pages in category products.
But I need add this pages to category product by code too. So I need add to every page some code. For examle e123, e124, b112, etc....
So I need page Intel Cpu Atom categorize in Products as "Intel Cpu Atom" and in category Codes as "e123". Is it possible?
I don't think something like this is directly possible, categories don't contain some kind of links to pages with customizable titles, they contain the pages themselves.
I see two ways to work around this:
Don't use categories. Just have a normal page Codes that will contain a list of all codes, with the right links.
Use redirects. For example, the page Intel Cpu Atom would be in category Products and there would be also a redirect from e123 to Intel Cpu Atom, which would be in category Codes.
Related
I have a JS-based dynamic website which is built the following way:
On the server side the index.html contains the "frame" of the website: the navbar and the sidebars.
After loading it, the inline JS-call dynamically fills the content part, generates the content on the client side.
I have multiple (70+) subsites where the "frame" is nearly identical, only the links and some text are different (and of course the titles).
Just to be able to "see it" somehow:
Main page https://example.com
Title: Home Page
Link1: https://example.com/site-1
Link2: https://example.com/site-2
Link3: https://example.com/category-1
Link4: https://example.com/category-2
Subsite for Site 1 https://example.com/site-1
Title: Site 1 | Example.com
Link1: https://example.com/site-1
Link2: https://example.com/site-2
Link3: https://example.com/site-1/category-1
Link4: https://example.com/site-1/category-2
Subsite for Category 1 https://example.com/category-1
Title: Category 1 | Example.com
Link1: https://example.com/site-1/category-1
Link2: https://example.com/site-2/category-1
Link3: https://example.com/category-1
Link4: https://example.com/category-2
So basically that's all the differences between the server-side content (what Google can index for sure) for the main page and subsites (for sites and categories). So 97% the same. Only after the loading the content part with JS will the difference come - but Google doesn't really load it, or not always. So as Google sees these 70+ sites, they are probably the same.
The question:
Do I have to use Canonical Tag for the main site and the subsites as well? I ask it, because Google doesn't really want to index the subsites, I still can see only the main site indexed. And I don't know if the reason behind it is maybe that on the server side all index.html files (of the main page and all the subpages) are nearly identical.
And I can't find any other suggestions, just to include the Canonical Tag on all sites.
Just like:
All pages (including the canonical page) should contain a canonical
tag to prevent any possible duplication. Even if there are no other
versions of a page, then that page should still include a canonical
tag that links to itself.
A self-referential canonical tag is a tag that is defined on the main
version of the page; irrespective of duplicate pages elsewhere. This
means, even if your page does not have other similar pages with
duplicate content, you still put a canonical tag on that page. This is
also known as self canonical.
All the subsites are listed in the sitemap.xml, but they are not indexed. And I'm searching for solution, that's how I found the Canonical Tag as possible solution. Hopefully.
Thank you.
The category and product pages on my website look like this:
ex: www.mywebsite/category/sub-category.html.html
My website is being hosted with Magento 2. This is only happening to product pages, not the static html pages like /about-us and those kinds of pages.
When I remove one of the .html's from the url, it says page not found so it does need both. I'm not sure why this is happening.
Any ideas?
remove .html.html from the file name. That should work.
Please help! I need to display an specific product page in a cms page (not the product list). This is so that I can choose that cms page as my homepage. Bottom line is that I need the product to be my homepage. I've tried everything! Using xml codes only displays the product list and not the actual product page itself.
You can do this using the "Default Web URL" in the System configuration.
You will have to replace the default value cms by the product url in this format: catalog/product/view/id/PRODUCT_ID/category/CATEGORY_ID/, you can find the product ID in the back-end panel by looking at the url of the edit product page.
I want to display all the categories in main page or any other page in MediaWiki just like how it displays in Special:Categories page.
Any help is appreciated.
The only built-in ways to display all categories are the special pages Special:Categories and Special:AllPages (in a default MediaWiki setup the categories are in NS 14, so Special:AllPages?namespace=14). Of those two, AllPages is transcludible, meaning that you can do like this on your main page:
{{Special:AllPages|namespace=14}}
If you want more control over the output, I suggest you use an extension like Semantic MediaWiki (advanced, full control), or CategoryTree (but as you noted, you will have to organize your category in a tree structure, with a common root).
OK. so i have a website, (obviously) and I'm trying to boost my SEO by putting so keywords towards the top of website. I have a template that was given to me by a third party but i have customized almost all of it except for the functionality parts of it. My page is organized by categories and when you enter any category the category name automatically gets placed at the top of the page using the code snippet:
<tr>
<td><h1 class="page_headers">[categoryname]</h1></td>
</tr>
it was easy to install this code into the frame of my site, and it works perfectly when you go to one of the category pages. the issue I am having is when you go to other pages that don't have a categoty. the code shows up as text as such
[categoryname]
is there a way to exclude a snippet of HTML on certain pages using java script or any other forms?