.htaccess help

Discussion in 'Apache' started by tigrrra, Oct 19, 2006.

  1. #1
    k my site is mywii.com im using joomla so i need to change the folder struckture since im working on seo stuff right now.

    this is what im using

    RewriteEngine On 
    Options +FollowSymlinks
    RewriteBase /
    
    RewriteCond %{HTTP_HOST} ^mywii\.com [NC]
    RewriteRule ^(.*)$ http://www.mywii.com/$1 [L,R=301] 
    
    
    RewriteRule /news/  /index\.php?option=com_content&task=blogcategory&id=1&Itemid=7
    PHP:
    this domain is a add-on domain its not my root.


    mywii.com/news/ dose not work I get a 404 error
    but
    mywii.com/wiivg/news/ dose wiivg is the subdirectory that the files are in.
    what do I need to add to make it mywii.com/news/ keeping in mind that its a subfolder

    I tried changing the RewriteBase to the subfolder and from server down to the subfolder but that didn’t work any suggestions?
     
    tigrrra, Oct 19, 2006 IP
  2. Colbyt

    Colbyt Notable Member

    Messages:
    3,224
    Likes Received:
    185
    Best Answers:
    0
    Trophy Points:
    210
    #2
    I did not quite follow all that. :) Normally you create and change the .htaccess that is is the same directory as the installation NOT the one that is your root directory.

    This works with most cPanel configs.
     
    Colbyt, Oct 19, 2006 IP
  3. tigrrra

    tigrrra Well-Known Member

    Messages:
    2,109
    Likes Received:
    68
    Best Answers:
    0
    Trophy Points:
    120
    #3
    i tried that and it did not work its shared hosting so i dont know dose the code look good to you?
     
    tigrrra, Oct 19, 2006 IP
  4. Colbyt

    Colbyt Notable Member

    Messages:
    3,224
    Likes Received:
    185
    Best Answers:
    0
    Trophy Points:
    210
    #4
    Off the top of my head and speaking with very little experince in the area, I dont think you need the \ to take the curse off the . that is a php thing.

    Here is a copy of my rewrite rules that does work on one of the more difficult hosts that I know of.

     
    Colbyt, Oct 19, 2006 IP
  5. tigrrra

    tigrrra Well-Known Member

    Messages:
    2,109
    Likes Received:
    68
    Best Answers:
    0
    Trophy Points:
    120
    #5
    what host do you use hostgator is not working for me. Both code streams are fine but nether of them work. I contacted them and I got a dumb reply it’s not even related to my problem.
     
    tigrrra, Oct 20, 2006 IP
  6. Colbyt

    Colbyt Notable Member

    Messages:
    3,224
    Likes Received:
    185
    Best Answers:
    0
    Trophy Points:
    210
    #6
    Of the accounts that I have I would suggest you take a look at skynethosting. I have six domains hosted there using the sky2000 plan. Been with them about 4 months and had zero problems.

    One thing you may love or hate. They give you a cPanel for each of your domains. They set up each domain within a few hours of the time you request it. You just tell them how much of your total allotment you want assigned to each account.

    I always hated dealing with WHM and addon domains in cPanel. The process of setting them up was a little awkward.

    I have tested a bunch of scripts in one of my accounts and not found one yet that would not run on their server config.
     
    Colbyt, Oct 20, 2006 IP