freelanceprogrammers.org Forum Index » PHP

Need .htaccess help


View user's profile Post To page top
imranforphp Posted: Sat Nov 26, 2005 7:40 pm


Joined: 21 Apr 2005

Posts: 4
Need .htaccess help
Hello Friends
I am workign on a ste similar to hi5.com and sms.ac.
and it is named as fro example. freidnds.com.
After user gets register i need to send him a mail passing a url to view his
profile
The url should be
http://community.friends.com/username.
Similary another link to view his profile from mobile phones
http://wap.community.friends.com/username.

My main concern is i had not created directory userwise. I fetch their
profile from db and show it on http://friends.com/profile/userid=100&mode=view.

How can redirect user to view their profile from
http://friends.com/profile/userid=100&mode=view.
to
http://community.friends.com/username.
?

Can anybody ehlp me in this matter. ?
Its related to .htaccess mod_rewrite capabilities.
But i am ver new to it.
Even if anybody finds any tutorial for beginners on this, please pass it on.

Thanks in advance






__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

[Non-text portions of this message have been removed]
Reply with quote
Send private message
View user's profile Post To page top
andufo1982 Posted: Sat Nov 26, 2005 8:11 pm


Joined: 20 Nov 2005

Posts: 5
Need .htaccess help
Hi Imran,
perhaps this tutorial could help:
http://www.yourhtmlsource.com/sitemanagement/urlrewriting.html

If other... search google for: htaccess mod_rewrite .. theres a lot of
examples.

andres


On 11/26/05, imran rahi <imranforphp@...> wrote:
>
> Hello Friends
> I am workign on a ste similar to hi5.com and sms.ac.
> and it is named as fro example. freidnds.com.
> After user gets register i need to send him a mail passing a url to view
> his profile
> The url should be
> http://community.friends.com/username.
> Similary another link to view his profile from mobile phones
> http://wap.community.friends.com/username.
>
> My main concern is i had not created directory userwise. I fetch their
> profile from db and show it on
> http://friends.com/profile/userid=100&mode=view.
>
> How can redirect user to view their profile from
> http://friends.com/profile/userid=100&mode=view.
> to
> http://community.friends.com/username.
> ?
>
> Can anybody ehlp me in this matter. ?
> Its related to .htaccess mod_rewrite capabilities.
> But i am ver new to it.
> Even if anybody finds any tutorial for beginners on this, please pass it
> on.
>
> Thanks in advance
>
>
>
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> [Non-text portions of this message have been removed]
>
>
>
> PHP Data object relational mapping generator -
> http://www.meta-language.net/
>
>
>
> SPONSORED LINKS
> Php
developer<http://groups.yahoo.com/gads?t=ms&k=Php+developer&w1=Php+developer&w2=
Basic+programming+language&w3=Computer+programming+languages&w4=Programming+lang
uages&w5=Object+oriented+programming&w6=Object+oriented+programming+tutorial&c=6
&s=189&.sig=Go57PZfEJUXyhVMKXHevgQ> Basic
> programming
language<http://groups.yahoo.com/gads?t=ms&k=Basic+programming+language&w1=Php+d
eveloper&w2=Basic+programming+language&w3=Computer+programming+languages&w4=Prog
ramming+languages&w5=Object+oriented+programming&w6=Object+oriented+programming+
tutorial&c=6&s=189&.sig=bhALr1AysJyo_QtFkNs-_g> Computer
> programming
languages<http://groups.yahoo.com/gads?t=ms&k=Computer+programming+languages&w1=
Php+developer&w2=Basic+programming+language&w3=Computer+programming+languages&w4
=Programming+languages&w5=Object+oriented+programming&w6=Object+oriented+program
ming+tutorial&c=6&s=189&.sig=crWMbNuTpQo7GcDczXxC7g> Programming
>
languages<http://groups.yahoo.com/gads?t=ms&k=Programming+languages&w1=Php+devel
oper&w2=Basic+programming+language&w3=Computer+programming+languages&w4=Programm
ing+languages&w5=Object+oriented+programming&w6=Object+oriented+programming+tuto
rial&c=6&s=189&.sig=ilvPwIkcb6Rcgq8rB1VUuQ> Object
> oriented
programming<http://groups.yahoo.com/gads?t=ms&k=Object+oriented+programming&w1=P
hp+developer&w2=Basic+programming+language&w3=Computer+programming+languages&w4=
Programming+languages&w5=Object+oriented+programming&w6=Object+oriented+programm
ing+tutorial&c=6&s=189&.sig=X-egmMGYu6ib76_snuXIAQ> Object
> oriented programming
tutorial<http://groups.yahoo.com/gads?t=ms&k=Object+oriented+programming+tutoria
l&w1=Php+developer&w2=Basic+programming+language&w3=Computer+programming+languag
es&w4=Programming+languages&w5=Object+oriented+programming&w6=Object+oriented+pr
ogramming+tutorial&c=6&s=189&.sig=TYAiLWTbKMLDLqFwDSFxFw>
> ------------------------------
> YAHOO! GROUPS LINKS
>
>
> - Visit your group
"php-objects<http://groups.yahoo.com/group/php-objects>"
> on the web.
>
> - To unsubscribe from this group, send an email to:
>
php-objects-unsubscribe@yahoogroups.com<php-objects-unsubscribe@yahoogroups.com?
subject=Unsubscribe>
>
> - Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service <http://docs.yahoo.com/info/terms/>.
>
>
> ------------------------------
>



--

Slds,
IIG Andres Santos

Móvil » (593) 9 7026627
Weblog » www.andufo.net
Fotolog » fotolog.andufo.net

*****************************
CEO » www.egobits.com
*****************************


[Non-text portions of this message have been removed]
Reply with quote
Send private message
View user's profile Post To page top
dewebbster Posted: Sun Nov 27, 2005 10:53 am


Joined: 06 Sep 2005

Posts: 16
Need .htaccess help
To begin with, mod-rewrite will only take the available data and
rewrite it to a different format, e.g.
http://friends.com/profile/username
to
http://friends.com/profile/user=username&mode=view

There are some recipes and examples to customize all over, but you will
need to be dealing with the same key(s) on both ends of the rewrite
operation!

-m


On Nov 26, 2005, at 7:40 AM, imran rahi wrote:

> How can redirect user to view their profile from
>   http://friends.com/profile/userid=100&mode=view.
>   to
>   http://community.friends.com/username.
>    ?
>  
>   Can anybody ehlp  me in this matter. ?
>   Its related to .htaccess mod_rewrite capabilities.


[Non-text portions of this message have been removed]
Reply with quote
Send private message
Post new topic Reply to topic
Display posts from previous:   
 

All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
China Wholesale - Electronics Products
Character Studio - Tutorials and Help