| | |||||
| ||||||||
| CODE This forum is for posting code snippets and example scripts that aren't quite tutorials, but could be useful for others. You may post code snippets and/or completed scripts that you've written and want to share here. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| New Member Join Date: May 2006
Posts: 15
![]() | Shorter URLs In your .htaccess file add: Code: <Files page> SetHandler application/x-httpd-php </Files> www..com/page www..com/page.php |
| |
| | THREAD STARTER #3 (permalink) | ||||
| New Member Join Date: May 2006
Posts: 15
![]() |
http://www.firstmortgageguide.com/articles http://www.firstmortgageguide.com/forum | ||||
| |
| | #4 (permalink) |
| Buy my domains. Join Date: Feb 2006
Posts: 2,792
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Yes, so since you don't need an extension to make it PHP, if you went to site.com/folder it would go to folder.php and not the actual folder. Say you linked to your forums (site.com/forums) that would do forums.php which isn't what you want. You would have to make all links go to site.com/forums/ Plus, it only gets rid of .php.. not that big of a difference. |
| |
| | THREAD STARTER #5 (permalink) | ||||
| New Member Join Date: May 2006
Posts: 15
![]() |
Then you can pass vars www..com/page/var/ PHP Code: www..com/page.php?var=BLAH (Ugly!) or you can have this: www..com/page/BLAH/ (Clean and SEO friendly!) | ||||
| |
| | #7 (permalink) | ||||
| Soon to be RICHdoggie! Join Date: Jan 2005 Location: UK
Posts: 2,408
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
????: NamePros.com http://www.namepros.com/showthread.php?t=194893 If I put "<Files search>" it would just be search.php? and not EVERY SINGLE FOLDER? Am I right? Thanks Tom | ||||
| |
| | #8 (permalink) |
| NamePros Regular Join Date: May 2006 Location: London, UK
Posts: 779
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | What about using the mod_rewrite method: PHP Code: - Vince |
| |