|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| 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
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
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 |
|
||||
|
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. |
|
|||
|
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. |
|
|||
|
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.
|
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
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 |
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |