Modrewrite help.

Discussion in 'Apache' started by kutchbhi, Nov 15, 2012.

  1. #1
    kutchbhi, Nov 15, 2012 IP
  2. juerald

    juerald Active Member

    Messages:
    352
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    65
    #2
    Create .htaccess file
    PS : This would be placed in the root directory of the server

    and try.
     
    juerald, Nov 15, 2012 IP
  3. kutchbhi

    kutchbhi Active Member

    Messages:
    130
    Likes Received:
    4
    Best Answers:
    2
    Trophy Points:
    70
    #3
    So I was putting it in the public_html dir. But I am on shared hosting, so can only put it in my /home/username/ directory, where also its not having any effect.
     
    kutchbhi, Nov 15, 2012 IP
  4. wetbupa

    wetbupa Peon

    Messages:
    119
    Likes Received:
    2
    Best Answers:
    1
    Trophy Points:
    0
    #4
    You can redirect your site links without any problems with the Redirect Section in your Control panel Cpanel.But in case you want to add your rewrite rules manually, just add them to /home/user/public_html/.htaccess

    htaccess.jpg

    You can also use mod rewrite generator http://www.generateit.net/mod-rewrite to generate the rewrite rules for your site.
     
    wetbupa, Nov 16, 2012 IP