Magento new store view as subpath of URL - magento

I was advised by an SEO specialist that I should add a /aus/ sub-folder to my Magento installation for geo-target specific purposes.
So what I am trying to achieve is to add the same version of my store in a /aus/ sub-folder.
So basically that it would look something like this:
www.mystore.com/ <- my current store
www.mystore.com/aus/ <- for geo-targeting specific purposes
I do not want to run the /aus/ version on a separate installation or separate language, basically it should just add /aus/ to my current store and replicate all links there.
What is the best way to have this handled? Some recommendations or advises would be greatly appreciated.

Why not just add the store into the URL via configuration? Magento already has configuration for this. See System > Configuration > General > Web > Add Store Code to Urls.
Instead of yourwebsite.com/customer/account, it will now generate URLs like yourwebsite.com/<your_store_code>/customer/account.
Do note that all of your custom templates and modules should properly use the getUrl() Magento methods to build URL, otherwise these URL will not contain the storecode and end up not working.

add a new website "aus"
and then create new folder with index.php that run "aus" store

Related

Drupal .htaccess url aliases

How can I make my URL (mysite.com/node/1) appear like this mysite.com/categoryname/myarticlename.html
I've used Joomla! until now, and it has a great option to use mod_rewrite with .htaccess.
How can I do this with Drupal?
Is this possible?
I don't know if I can ask here about these problems, but if not, I will delete this post.
Thanks in advance!
Firstly, make sure you have clean URLs properly configured.
Then you've got two options...
To add aliases on a node-by-node basis, go to the node edit form and add it manually (this is built into core), e.g.
If you want aliases to be automatically created from properties/fields attached to nodes, install the Pathauto, Token and Entity modules (the last of those contains the Entity Token module). Then go to /admin/config/search/path/patterns, and define some aliases for your various content types. e.g.
When you create content an alias will be automatically created. Depending on the settings you choose, the alias can also be updated from the fresh data when you update a node.
As a bonus you can then install Global redirect which will handle all of the auto-301 redirects for you.
Unless you've got a pretty advanced use case you'll never need to edit the .htaccess file just to provide URL aliases.

Understanding the Joomla Component File Structure / from URL

I'm new to joomla and have got a problem with a website.
I need to modify a view and I've been told it is in
http://www.example.com/index.php?option=com_user&view=register&Itemid=68
It has a registration form and i need to modify its field. I've access to FTP only. I need to know where are these files to modify the registration form. If one can describe the meaning of this url structure then it would be very helpful.
You will find the template files in /components/com_user/views/register/tmpl.
However, you should create an html/com_user folder in your template directory with a copy of those files and use a template override ("never" edit core files).
Here are a couple resources that will point you in the right direction:
http://docs.joomla.org/J2.5:Developing_a_MVC_Component/Introduction
http://docs.joomla.org/How_to_override_the_component_mvc_from_the_Joomla!_core
com_user means use the user component register view.
Itemid 68 refers to the id of the menu item it is linked from.
You don't want to directly modify any joomla files.
If you want to add a field to registration activate the user plugin or create your own user plugin along the same design but with the fields you want.
It is advisable not to modify the core files directly, they will get overridden whenever the Joomla is updated.
However what you are looking for is available at components\com_users\models\forms\registration.xml file. you can change the default fields of the registration form in this file.
If you would like to add additional fields to registration form, there is a better way:
http://docs.joomla.org/Creating_a_profile_plugin

Multistore, template code from code/local/

I'm prepare a multistore on magento.
I have a three template, and I was change a few file from code/core and replace in code/local, but only one template take a changing code from code/local
a rest template should take file from code/core/
Now every template take files from code/local/
How can I'm set app to resolve a problem
thx for help
You should NOT overwrite core files in local. Better try to develop your own module which rewrites the core functionality. In this module you can integrate a configuration, so it's only used for one store view, and not for all.

Magento Multi Store themes calling same login.phtml file

I'm new to magento. Currently i'm developing two ecommerce sites using multi-store option in magento. Both the sites are 90% over, last night when i planned to customize the login page i was shocked. The reason is the changes made in first store login page also reflecting in second store also. The login page is curently calling from
frontend/default/default/template/persistent/customer/form/login.phtml
Is it possible to give any custom login page? PLz guide me magento experts......
Please update your post with your frontend/ folder structure down to each theme template folder. It might be that you don't have a copy of login.phtml in the second theme. Moreover you should follow templates best practices as:
Always create for a new shop different packaga. So not
frontend/default
but
frontend/yourcustompackage
Always have default theme left as much untouched, as possible. So in the
frontend/package/default
Should be some basic changes and rules of your package. It means for example in the putting reset.css for all of your themes. Or something like this.
As for me, each store view should have own theme. So, for example, storeview1
frontend/package/storeview1/
There you copy and change files specific for this theme. So, for example, in default you might have login.phtml. But you want storeview1 to have another login.phtml and in storeview2 it should be the same as in default. Therefore you copy the login.phtml from default to storeview1 and change it there. Don't forget to change package and theme in System->Configuration->Design. Package should be change for whole shop and theme should be specified for every store view or left untouched for default.
P.S. Magento theme fallbacks
P.P.S. Try this tutorial or google another one
P.P.P.S. I hope, you got the answer for your question.

Magento - How to rewrite /app/design/frontend/default/default/template/customer/form/register.phtml

I want to add new field in registration form, should I rewrite /app/design/frontend/default/default/template/customer/form/register.phtml
If yes, how can I do this ??
Well if you want simple, then you can use this module from AITOC - http://www.aitoc.com/en/magentomods_checkoutfieldsmanager.html It allows you to add fields to the registration and store the information in the users profile.
If you're going to do it yourself, you'll have to do more than rewrite the phtml file, you'll have to create a whole extension that allows you to save the data somewhere and associate it with the users profile.

Resources