+ Reply to Thread
Results 1 to 7 of 7




  

Thread: .htaccess problem maybe someone can help?

      
  1. #1
    I'm New! xxwckdxx is on a distinguished road xxwckdxx's Avatar
    Join Date
    January 25, 2011
    Posts
    2
    Rep Power
    0
    Feedback Score
    0

    Question .htaccess problem maybe someone can help?

    Ok this is the issue we have a multiple domains and one web host. The main site we will say is abc.com and we have a shopping cart at abc.com/cart/ I need to redirect 123.com to abc.com/cart/index.php. 123.com will be domain for the shopping cart. I know I have to do it using .htaccess, but I have no experience on how to do it. I haven't ever messed with htaccess file before. Right now 123.com is pointing to abc.com/cart/ but I get directory has no index.html file.(Because is suposed to be index.php)

    Any help is appreciated, thanks

    Robert

  2. #2
    Jedi Master Harmonic is on a distinguished road Harmonic's Avatar
    Join Date
    January 17, 2011
    Location
    Toronto
    Posts
    86
    Rep Power
    2
    Feedback Score
    0

    Default Re: .htaccess problem maybe someone can help?

    Code:
    Redirect 301 / http://abc.com/cart/index.php
    Be VERY careful when messing around in the htacess file... If you are not comfortable, just use a meta tag

    Code:
    <meta http-equiv="refresh" content="1; url=http://abc.com/cart/index.php">

    Read this before editing the htaccess
    Code:
    http://www.webweaver.nu/html-tips/web-redirection.shtml
    It can be scary, so make 100% you under stand everything on that page.
    Last edited by Harmonic; Jan 25th, 2011 at 5:42 pm. Reason: Links messed up

  3. #3
    I'm New! xxwckdxx is on a distinguished road xxwckdxx's Avatar
    Join Date
    January 25, 2011
    Posts
    2
    Rep Power
    0
    Feedback Score
    0

    Default Re: .htaccess problem maybe someone can help?

    Thanks apreciate it

  4. #4
    The Force is Strong! georgerogers is on a distinguished road
    Join Date
    January 27, 2011
    Posts
    32
    Rep Power
    2
    Feedback Score
    0

    Default Re: .htaccess problem maybe someone can help?

    Take a back up of your entire site first because I messed with the .htaccess before and it all went tits up, bad day for me I can tell you.

  5. #5
    Jedi Master immunk is on a distinguished road immunk's Avatar
    Join Date
    January 28, 2011
    Posts
    17
    Rep Power
    2
    Feedback Score
    0

    Default Re: .htaccess problem maybe someone can help?

    You are better off using meta tags alone. That's better. Because httaccess very sensitive. Do not use httaccess to dabble. More you use a suggestion from "Harmonic"

  6. #6
    Jedi Master webcrafter is on a distinguished road webcrafter's Avatar
    Join Date
    January 29, 2011
    Location
    Lakeland, Ga
    Posts
    18
    Rep Power
    2
    Feedback Score
    0

    Default Re: .htaccess problem maybe someone can help?

    Do you not have the option to set subdomains in your hosting acount i.e. through cpanel? This would be much easier for you. Usually it is located toward the bottom of your Cpanel, you type in the name of the subdomain you want like ourshop, point it to the directory you want it to have as its home domain.com/store and then people can type in mystore.domain.com to get to it. Some hosts don't allow this but most do, another option is to purchase a unique domain for the store and put it in through cpanel if your host does support multiple domains and point it to the store.

    If your host doesn't support subdomains then it may be advantageous to find one that does and move there before getting to big.

    Just my two cents worth....

  7. #7
    Jedi Master SilVerStone is on a distinguished road SilVerStone's Avatar
    Join Date
    February 1, 2011
    Posts
    9
    Rep Power
    0
    Feedback Score
    0

    Default Re: .htaccess problem maybe someone can help?

    You can easily make redirection from domain control panel or from cpanel. Both option very easy..

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. .htaccess Help
    By glnutrition in forum Programming
    Replies: 2
    Last Post: Oct 15th, 2009, 9:04 am
  2. htaccess Change url
    By Tazfan in forum HTML & Website Design
    Replies: 5
    Last Post: Jan 4th, 2009, 12:06 pm
  3. htaccess query?
    By Purple Rain in forum Web Hosting
    Replies: 8
    Last Post: Dec 24th, 2008, 7:51 am

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
WebTalkForums
WebTalkForums
Recent Forum Threads