You are here: Re: seeking mod_rewrite solution « PHP Programming Language « IT news, forums, messages
Re: seeking mod_rewrite solution

Posted by joelbyrd on 03/07/06 03:20

Alright, I think I've got everything squared away, but now for the
potentially annoying part - how do I run the thing? Is it simply a
matter of including

RewriteEngine On
RewriteRule ^/admin\/?/$ /admin/index.php [L]
RewriteRule ^/\w+\/?/$ /my_profile.php?user_name=$1


in the .htaccess file? (because I tried that and it didn't work) Or
do I need to include more in the .htaccess
file, or does this code have to go somewhere else besides the .htaccess

file? Is the mod_rewrite module already built in (I think it is)?
I've been trying to read about the mod_rewrite module on
http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html, but I'm still
confused as to how to get the thing actually working. Ideally, the
complexity of a task should somewhat reflect the complexity of
implementing that task, but I don't know if that's the case here.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация