Submit Your Article Forum Rules

Results 1 to 4 of 4

Thread: mod_rewrite to Facebook page

  1. #1
    Senior Member
    Join Date
    Feb 2004
    Posts
    263

    mod_rewrite to Facebook page

    Trying to figure out mod_rewrite is driving me insane. What do I put in my .htaccess file if I want to redirect my-domain.com/facebook (case-insensitive) to my facebook page at http://www.facebook.com/pages/blah

    Thanks,
    Paul

  2. #2
    WebProWorld MVP wige's Avatar
    Join Date
    Jun 2006
    Posts
    3,138

    Re: mod_rewrite to Facebook page

    I wouldn't bother with mod_rewrite, I would simply create a simple redirect with the following line:

    Redirect 301 /facebook http://www.facebook.com/pages/blah

    However, it should be noted that Apache treats all URLs as case sensitive.
    The best way to learn anything, is to question everything.
    WigeDev - Freelance web and software development

  3. #3
    Junior Member
    Join Date
    May 2009
    Posts
    26

    Re: mod_rewrite to Facebook page

    Create a directory in your FTP and call it facebook.

    Assuming you use cPanel, log in and under "Domains" click on "Redirects".

    Here you can set up a redirect so that my-domain.com/facebook routes directly to your personal Facebook page.

    I hope this helps.

    P.S If you don't use cPanel you can use a manual HTML redirect in an index page within the /facebook directory. If you don't use cPanel let me know, and I'll explain this method.

  4. #4
    Senior Member
    Join Date
    Feb 2004
    Posts
    263

    Re: mod_rewrite to Facebook page

    Thanks for the replies. Because file and directory names are case-sensitive I thought mod_rewrite would be a better option because that can be done case-insensitively.

Similar Threads

  1. Making Your Website's Facebook Page - Suggestions Needed
    By morestar in forum Marketing Strategies Discussion Forum
    Replies: 17
    Last Post: 03-03-2010, 11:47 PM
  2. Anyone know how to get your facebook page to rank higher for your brand name?
    By youngerjedi in forum Search Engine Optimization Forum
    Replies: 4
    Last Post: 02-14-2010, 10:23 PM
  3. Q about Mod_Rewrite Results: Making Dupe Page or Cloaking?
    By blitzen in forum Search Engine Optimization Forum
    Replies: 1
    Last Post: 11-11-2008, 06:23 PM
  4. How to do a mod_rewrite?
    By watto in forum Web Programming Discussion Forum
    Replies: 2
    Last Post: 06-02-2007, 12:17 PM
  5. mod_rewrite
    By watto in forum Services for Sale/Hire
    Replies: 0
    Last Post: 11-08-2005, 07:47 PM

Posting Permissions

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