Main Profile

At A Glance

PHP Tutorial: Vanity URL (Part 2)

To create the .htaccess file on a local server (windows): 1. Open a command prompt. 2. Switch to the directory where profile.php, etc. will be. 3. Type "notepad .htaccess" (without quotes) 4. If you're prompted to create the file, accept this. 5. Type the .htaccess contents you see in the tutorial. Note: On a hosted server, you can easily create a .htaccess file using a file manager. It's even easier using FTP. This tutorial will allow you to create a 'Vanity URL' system within your website, which allows user profiles to look something like http://youtube.com/phpacademy, rather than http://youtube.com/profile.php?u=phpacademy (for example). Official website http://phpacademy.org Support Forum http://phpacademy.org/forum Follow us on Twitter! http://twitter.com/phpacademy
Length: 09:09

Contact

Questions about PHP Tutorial: Vanity URL (Part 2)

Want more info about PHP Tutorial: Vanity URL (Part 2)? Get free advice from education experts and Noodle community members.

  • Answer

Ask a New Question