How to redirect link to different ftp path on website

6 replies
  • WEB DESIGN
  • |
Hello. I'm thinking all day about it. Mainly : I have a website which is a blog. I wish to create a marketplace there. The engine of blog is a typical wordpress with customized theme. However due to some issues and after thinking about it a little, I prefer to create digital marketplace using commerce script and redirect one of the hyperlinks on blog to that shop directory.

More precisions : The blog is placed on ftp under "/Donut" folder
Now I've uploaded another folder called "/Shop" under "/Donut/Shop" and I wish one of the links in horizontal menu that redirects to specific categories to redirect user to a marketplace. How I see it:
mydomain.com -----> clicking 'Shop' on horizontal menu -------> mydomain.com/shop

Probably the theme will be different as it will take it from /Shop folder on ftp in which there are completely different files than on wordpress. How to do it ? any advices?

P.s. I'm afraid that also having only one mysql database can be a problem to hook shop under it and make blog and shop use it at the same time.

Any help would be extremely nice seen. Thank you in advance

Daniel
#ftp #link #path #redirect #website
  • Profile picture of the author Istvan Horvath
    Not entirely clear what you are trying to say (and do) - probably, because of the language barrier...

    Let's separate FTP and URLs - don't mix them! (and always use "example.com" for... example )

    You have a site at example.com and a blog at example.com/donuts - right or not?

    And you made a subfolder/subdirectory example.com/donuts/shop? Is that right?

    From here on I am confused...

    What is at example.com if the blog is at example.com/donuts?
    Is there another WP installation?

    Re: Menus - in any normal WP theme that is using the Custom Menus feature you can create menu items to anything you want!
    Signature

    {{ DiscussionBoard.errors[6139395].message }}
    • Profile picture of the author Omnibus220
      Thank you for your reply. I need to justify myself that this chaotic writing is caused by huge pression that I feel cause I'm aware that at least 2 of my projects should run since 1,5 month and generate money for me as this year is very important for me. I apologize once again for this chaos and I'll explain more precisely what I wish to do.

      Blog based on wordpress engine is sitting on example.com. The ftp path folder to which example.com redirects is '/Donut'.
      The custom template that is uploaded contains a horizontal slide menu. I can add items to it but only category pages. For example 'e-commerce', 'investments' etc. Now, I've purchased Digital Downloads pro from CodeCanyon and as it's a separate script not linked with wordpress engine, I placed it in the same folder in which wordpress files are. So this marketplace script and all files related to it is located under '/Donut/Shop' in FTP (so in the same path in which wp-content etc. folder are)

      What I wish to do ? I wish that after clicking on the link in horizontal menu entitled 'Shop' browser will go to the path '/Donut/Shop' and load all files such as index and graphical files from the template but the adress would be still example.com/shop. I wish also that this marketplace script would use the same mysql database as wordpress blog is using at this moment.
      In big shortcut : Clicking on a link in example.com will redirect to a different folder in ftp, load files responsible for all digital downloads marketplace, allow user to surf within this shop and make operations such as buying, checkout etc. but everything will be still happening under the same domain, just there would be a '/shop' (as i don't want to invest in new domain and i can't make a subdomain on this one).
      {{ DiscussionBoard.errors[6139506].message }}
  • Profile picture of the author Istvan Horvath
    Usually, our websites just reproduce the mess (chaos, in your words) that exists in our head

    I still have no idea what is going on on your domain/site... Sorry.

    1.
    Blog based on wordpress engine is sitting on example.com. The ftp path folder to which example.com redirects is '/Donut'.
    WHY? Why do you need to redirect example.com to a folder? (I told you, don't even mention FTP - it has nothing to do with the mess: there is NO such thing as "ftp path folder"!!!)
    You set it up that your domain doesn't show what is at the root (example.com) but something in a subfolder > example.com/donut/

    So the real question is: Why did you need to do this? Any rational explanation for it?

    2.
    The custom template that is uploaded contains a horizontal slide menu. I can add items to it but only category pages.
    That's not true. It is possible to add ANYTHING to any menu, in theory.
    Of course, sometimes it has to be manually coded... but you can add anything anywhere, if you know how to edit a WP theme's files.

    OK, what is a "category page" according to you?

    3.
    Now, I've purchased Digital Downloads pro from CodeCanyon and as it's a separate script not linked with wordpress engine, I placed it in the same folder in which wordpress files are. So this marketplace script and all files related to it is located under '/Donut/Shop' in FTP
    In the quote above in two sentences you are saying 2 [TWO] different things!
    a) your new script is in the same folder as WP
    b) your script is in a subfolder under WP

    Read my first sentence in this post and try it again...

    4.
    What I wish to do ? I wish that after clicking on the link in horizontal menu entitled 'Shop' browser will go to the path '/Donut/Shop' and load all files such as index and graphical files from the template but the adress would be still example.com/shop.
    Most likely not easy to do. If you wanted the "shop" directly under the root of the domain, why didn't you install it there?
    Aren't you over-complicating it?

    5.
    I wish also that this marketplace script would use the same mysql database as wordpress blog is using at this moment.
    Normally, a database can handle data from multiple scripts.
    Scripts, usually, create table with their own distinctive prefix; e.g. WordPress creates table like wp_options, wp_users etc.

    The last paragraph is confusing again: some things can happen while staying on the same domain or in the same folder... other can not.
    For example, if the "checkout" and payment is using Paypal - then the buyer will be directed to Paypal from where should come back to the download page etc. Do you have a clear understanding how this process work?
    Signature

    {{ DiscussionBoard.errors[6139733].message }}
  • Profile picture of the author Omnibus220
    I don't know how to explain it differently. Just how to create a hyperlink in horizontal menu that will redirect user to digital marketplace.
    I had to put some modules like wordpress or magento in separate folders in my ftp to not make it messy. example.com redirects to /Donut, example2.pl redirects to different folder. I don't know should i put files from digital downloads pro in the same folder in which wordpress is or completely in separate folder. I don't know how to make this shop exist under example.com/shop directory.
    Just : There is example.com based on wordpress
    Shop is based on a custom script with all files and folders
    After clicking on link in horizontal menu i want user to be redirected to that shop (i want browser to take all necessary files from digital downloads script folder, run all site. The only thing that would change in the adress would be example.com/shop - if digital downloads folder would be located in 'shop' folder on ftp)

    Look here : donut-break(dut) com
    {{ DiscussionBoard.errors[6139998].message }}
    • Profile picture of the author Omnibus220
      Can someone finally help me? At least i would like to know where to edit that horizontal menu under the logo at donut-break(dut)com
      I want to create there link called 'Shop' and try somehow to make it execute files from different folder in which blog is.
      Any help?
      {{ DiscussionBoard.errors[6140767].message }}
  • Profile picture of the author Omnibus220
    CAN SOMEONE HELP ?!
    {{ DiscussionBoard.errors[6140944].message }}

Trending Topics