iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
IT Discussion Forum Having IT issues? Got IT questions? Who doesn't? If you can't get your Apache to work with your MySQL or your php is choking on your ODBC... Let's see if we can help you come up with some ideas.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-27-2009, 11:10 AM
WebProWorld Pro
 
Join Date: Feb 2004
Posts: 262
pdstein RepRank 0
Default 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
Reply With Quote
  #2 (permalink)  
Old 05-27-2009, 12:55 PM
wige's Avatar
Moderator
WebProWorld Moderator
 
Join Date: Jun 2006
Location: United States
Posts: 2,650
wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9
Default 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.
Reply With Quote
  #3 (permalink)  
Old 05-27-2009, 12:56 PM
WebProWorld Member
 
Join Date: May 2009
Posts: 26
R. Treska RepRank 0
Default 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.
Reply With Quote
  #4 (permalink)  
Old 05-27-2009, 01:05 PM
WebProWorld Pro
 
Join Date: Feb 2004
Posts: 262
pdstein RepRank 0
Default 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.
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > IT Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with 301 redirect and mod_rewrite spenland IT Discussion Forum 7 12-04-2008 06:45 PM
Q about Mod_Rewrite Results: Making Dupe Page or Cloaking? blitzen Search Engine Optimization Forum 1 11-11-2008 07:23 PM
How to do a mod_rewrite? watto Web Programming Discussion Forum 2 06-02-2007 01:17 PM
mod_rewrite watto Services for Sale/Hire 0 11-08-2005 08:47 PM
Alternate to mod_rewrite? cyberious Search Engine Optimization Forum 3 05-31-2004 02:25 AM


All times are GMT -4. The time now is 11:47 AM.



Search Engine Optimization by vBSEO 3.3.0