I need a bit of advice. I have an e-commerce site on www.mydomain.com and I have now created a sub domain that will have a totally new store running on it (all installed any ready to go). I use prestashop and I want to point a category on www.mydomain.com to my new sub domain www.mydomain/sub.com. Can this be done? How would I do it?
-
3if it is a subdomain, would you be pointing it to subdomain.mydomain.com?– SteveJul 13, 2012 at 6:19
-
If I understand your question, you could stick the page in question into the HTML element I-Frame or similar?– DaveJul 30, 2012 at 14:18
-
Do you have control over the templates in prestashop? Can you add php code to them? If no then you'll have trouble linking a category to your subdomain. If you can create content links just do that and place it some where in the sidebar or make a graphic and link that.– AnagioDec 11, 2012 at 8:44
3 Answers
www.mydomain/sub.com
either does not make sense or will confuse everyone or I'm not getting your question right
www.mydomain.com/sub
is a subdirectory
while
www.sub.mydomain.com
is a subdomain
In general context subdirectory and subdomain should behaves almost the same way. For SEO, the safe approach is to use subdirectory instead of subdomain e.g. http://www.whitefireseo.com/site-architecture/subdomain-or-subfolder-post-panda/360/ (there are a lot more preferences, feel free to do some searches)
The general directory structures on your server would be as follows for both subdirectory and subdomain case
mydomain.com/
(your domain www.mydomain.com points to this directory)sub
(your subdomain or subdirectory simple points to this directory)other
directories and files
As a result, what you need to do is the following 2 simple steps
Step 1: Create directory "sub" inside directory "mydomain.com" (this should be a breeze if you have access to cPanel or SFTP access to the directory "mydomain.com" and you have "write" permission to it
Step 2: Install a new prestashop website inside "mydomain.com/sub/"
Good luck!
If you want to make sub domain then it can't be possible as mydomain.com/sub.com but you can create it as sub.mydomain.com. If you are ready to make sub domain then log in into control panel of web hosting and then choose option as create sub domain. You sub domain facility available on your web hosting plan. I hope you can understand about sub domain.
-
1
So.. you havee installed PRESTASHOP in www.mydomain.com and your store will stay there. The only thing you want to do is to read a category from prestashop and put the results in subdomain.mydomain.com. If I understood well so.. this will be done in 3 ways:
- you will connect to the old database and read from there anything you want to apply in the subdomain
- you will use the prestashop webservice (the old one, installed in www.mydomain.com) and then conform to the documentation about collecting data trough webservice have some results
- if you wish to only display a link to the category, you can copy the category URL, but in this situation you will ensure that category never ever changes its id or name or changing the seo friendly url structure.
Hope is helpfull for you