Results 1 to 11 of 11

Thread: .htaccess help

  1. #1

    .htaccess help

    Hi,

    I want help in .htaccess

    When anyone opens http://website.com/folder/any-thing-here

    I want it to open http://website.com/folder


    How do I do this ??

  2. #2
    Join Date
    Aug 2002
    Posts
    645
    Try putting the following code in the "public_html" directory in a file called ".htaccess"

    Code:
    ReDirect /folder/any-thing-here http://website.com/folder

  3. #3
    Join Date
    Apr 2009
    Location
    New Jersey
    Posts
    367
    IF you are using cPanel/WHM you can do a redirect within cPanel.

  4. #4
    Join Date
    Jun 2003
    Location
    New Zealand
    Posts
    130
    Code:
    RewriteRule ^/folder/(.+)$ http://website.com/folder
    Something like that should work.

  5. #5
    Join Date
    Jan 2005
    Location
    Richmond, VA
    Posts
    3,119
    Lookup htaccess redirects - there are different types, depending on your SEO needs, so proceed with caution here. The suggestions listed above will certainly work, but make sure you know how they work before implementing them.
    Daniel B., CEO - Bezoka.com and Ungigs.com
    Hosting Solutions Optimized for: WordPress • Joomla • OpenCart • Moodle
    Data Centers in: Chicago (US), London (UK), Sydney (AU), Sofia (BG), Pori (FI)
    Email Daniel directly: ceo [at] bezoka.com

  6. #6
    If you can do that or that is not working trough htacces file I suppose that would be good idea to get in touch with your web hosting service provider nd ask to have that done on the server side. Good luck

  7. #7
    Join Date
    Aug 2009
    Posts
    477
    Do you want to "mask" URLs, or do you want to make simple redirects? If it's 2nd option, just click Redirects icon in cPanel - it's the easiest way to get this job done.

  8. #8
    Try configuring it in your control panel. If your control panel has that function it will automatically write necessary lines to the .htaccess file.

  9. #9
    Quote Originally Posted by hostbite View Post
    Try configuring it in your control panel. If your control panel has that function it will automatically write necessary lines to the .htaccess file.
    With cPanel is that simple... Add therewrite rule and you are on the go.

  10. #10
    Join Date
    Aug 2009
    Location
    Bangalore
    Posts
    59
    redirect 301 /folder/any-thing-here /folder

    hope this will work.

  11. #11
    Join Date
    May 2008
    Location
    U.S.A.
    Posts
    77
    Quote Originally Posted by rootatmike View Post
    redirect 301 /folder/any-thing-here /folder

    hope this will work.
    I would suggest doing it this way. The 301 makes it search engine friendly.

Similar Threads

  1. .htaccess help
    By howsthat in forum Hosting Security and Technology
    Replies: 6
    Last Post: 10-05-2007, 12:17 PM
  2. htaccess and IIS
    By 3-rx in forum Hosting Security and Technology
    Replies: 3
    Last Post: 10-20-2006, 12:17 PM
  3. .htaccess
    By j_pearcy in forum Hosting Security and Technology
    Replies: 3
    Last Post: 05-13-2002, 04:26 AM
  4. htaccess
    By ThePrimeHost in forum Dedicated Server
    Replies: 1
    Last Post: 01-13-2002, 04:59 PM
  5. htaccess on a RAQ
    By FireHawk in forum Hosting Security and Technology
    Replies: 0
    Last Post: 10-03-2001, 12:39 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •