New root page in wagtail - internationalization

I want to change the Root page in Wagtail.
I have deleted the default home page
Created another page assigned "home" as slug.
Created a template my_page_name_home.html
But I am getting 404 all the time when I try http://localhost:8000/. Do I have to change the urls.py patterns?
I am doing this because of Wagtailtrans add-on. In order to work i have to redirect away from the homepage to my new page ot type TranslatableSiteRootPage

You need to go to Settings -> Sites in the Wagtail admin, and add a site record to associate 'localhost' to your new homepage. (A site record for this exists on the default installation, but this would have been deleted when you deleted the default homepage.)

Related

Magento 1.9 Navigation link to home page

How would I make a link from the main navigation to the home page (or any other page)?
I can do it in the Admin using
Catalog -> URL Rewrite Management -> Add URL Rewrite
Then creating a Custom Rewrite.
I use the hardcoded link to the homepage http:\\somedomain\magento as the Target Path and set it to Permanent 301 Redirect.
Then I delete the original System rewrite for the home category.
This works until it's reindexed, then the original System rewrite for that category comes back and the Custom one I created doesn't work anymore.
I found out what I was doing wrong. I shouldn't have deleted the original system rewrite. These are the steps to make custom links from the navigation menu.
1) Copy the Target Path from the System Category rewrite
2) Change the redirect to Permanent 301 for the System Category rewrite
3) Create a new Custom rewrite.
4) In the new Custom rewrite, paste the copy from #1 into Request Path
5) For ID Path put the URL Key for the page to be linked, for default page is /
6) For Target Path put the path to the new page (e.g / or /contacts)
This article explains it in detail : http://go.magento.com/support/kb/entry/name/adding-page-links-in-the-navigation-bar/

Joomla - Use index.php instead of "/" as homepage

Let:
test.tld = domain
test.tld/index.php = my Joomla home page
test.tld/ = a pre-release page (index.html) that isn't Joomla
Now Joomla always wants to go to test.tld/ as homepage so I basically get lost (because it isn't Joomla)
How to set Joomla so that the Menu to homepage is "test.tld/index.php" not assume I want "test.tld/" ?
I already tried making a dummy homepage on an invisible menu so that the "home" on the navigation isn't really a "home"
Is there no better way? Thanks
You can solve this issue in two ways:
Recommended: Your web-server default index is set to index.html file. You can change that based on your web-server (Apache, Nginx, whatever).
NOT Recommended: You can disable Rewrite URLs feature in Global Configuration of your site, this will show index.php on every page.

Magento migration from single store to multistore. Redirects

I have 1 website for now. Its URL is www.test.com, for example.
I want to create second website on the same domain adding store codes to URLs. So my URLs will be
www.test.com/first/
www.test.com/second/
But as I can see all my previous URLs will show 404 on their open. So if I open
www.test.com/product.html
it will show 404. It is not good because I loose my SEO.
How can I create redirects so if user opens
www.test.com/product.html
he will be automatically redirected to default website, like
www.test.com/first/product.html
Shall I have any issues with such redirects? (Like API will not work)
Or is it possible for URL
www.test.com/product.html
to show product from default website, if exists?
Magento has a very good system for SEO.
For Rewrite Management these are the steps:
1.Loginto Admin.
2.Move mouse over Catalog and you will find a drop down.
3 Select URL Rewrite management.
Catalog >> UrlRewrite Management
4.Then click on ADD URL Rewrite Button.
5.Then on next screen select custom from option provided
Create URL Rewrite : Select Custom
Now following important fields and values that should go:
Request Path (Old URL ) Target Path ( New URL ) redirect (Permanent 301).
Note : This approach will be good if you have few products but if you have too many product then some .htaccess rule is recommended.

Magento not using appropriate URL - 404 Page not found

I have a magento site running locally using WAMP and it works great. However I need to create a different site so I created a folder for this new site under htdocs.
In that folder I loaded the Magento files.
Created a new database for newsite with all rights in phpmyadmin.
Went to the localhost:8888/newsite and started Magento installation wizard.
In the configuration section of the wizard I entered all the info required: db name, user, password. For URL Base I used the default (http://localhost:8888/newsite). Selected allow charts and Allow apache rewrites. Finished installing magento.
Now magento is running on newsite. I can see the front and back-end of the site.
Here is the problem: When I create a category and/or subcategory, magento does create the menu link but when I click any category, the browser takes me to a 404 not found. Upon analyzing the URL that took me there i see that the URL is : http://localhost:8888/newsite/category.html BUT by adding "index.php" into the URL (http://localhost:8888/newsite/index.php/category.html , the page does work!
So this means magento IS creating the page for the category but the linking is somewhat wrong.
Now, I've been making sure that rewrite is enabled and after all, the other site I mentioned I have is working properly, so I assume rewrite is properly enabled.
So I need help finding:
Why is one site working and the other isn't?
How can I fix this issue?
Thank you!
Sounds like you haven't copied over the .htaccess file (in your Magento root folder). You need this file for the Apache rewrites to work.

Magento: Setting the default homepage / store when you have multiple stores

I have a Magento installation with two store versions: Store A and Store B. When you go to 'mydomain.com' I get this error message:
'There was no Home CMS page configured or found.'
Until you click on the link for either Store A or Store B -- then it saves the store in a cookie called 'store' and remembers this when you go to 'mydomain.com'.
Is it possible to set 'Store A' as the selected store / homepage by default if no 'store' cookie exists yet?
Thanks for any help!
In the admin you go to System -> Configuration -> Web -> Default Pages
You will have to change to the website / store view that you want to change (the dropdown in the upper left corner). You will probably have to create a new CMS page if you want to have something different from your default home page.
go to System -> CMS -> Pages
choose Home Page Cms
and asign all view states that you want them for this cms
you could do it for another cms too

Resources