| | |||||
| ||||||||
| Website Development Development concepts, scripts, sponsors and affiliate programs. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Senior Member Join Date: Oct 2003 Location: world wide web
Posts: 2,056
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | mod rewrite hi does anyone know how to mod rewrite..? i would like to make my website page in following format from 'http://domain.com/forums/index.php" to 'http://domain.com/index" thanks |
| |
| | #2 (permalink) |
| NamePros Webmaster ![]() ![]() ![]() Join Date: Feb 2003
Posts: 12,930
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Just the one page? Or do you want rewrite a whole series of pages? Instead of using a filename without an extension like /index, I would recommend adding an extension, like .html to it so its /index.html The one page is pretty simple. Just create a .htaccess file in your root directory with the following: Code: RewriteEngine On RewriteRule ^index.html forums/index.php <Files *.html> ForceType application/x-httpd-php </Files> <Files *.htm> ForceType application/x-httpd-php </Files> |
| |
| | THREAD STARTER #3 (permalink) |
| Senior Member Join Date: Oct 2003 Location: world wide web
Posts: 2,056
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | thanks -RJ- for replay yeah no problem i will use "http://domain.com/forums/" use same url no need to redirect it to "http://domain.com" but how can i make them int to .html my intention was to just make it search engine friendly my site will use ip forums |
| |