By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,830 Members | 2,271 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,830 IT Pros & Developers. It's quick & easy.

MVC style URL cloaking system, how to.

P: n/a
Hi everyone.

Im developing a project wich have some url cloking needs, like the
when made with fotolog.com.
If the user type: www.domain.com/USER
this will lead to a 404 error page witch is used to map the full url
and redirect the user to the long URL ( ex.: www.domain.com/profile.php?user=USER
)

I want to make that to make the site more user friendly, like when you
type www.fotolog.com/USER and you are in the user profile. But, I want
that the URL stays with the mask to easy the navigation, Im still
thinking about how to handle the internal links, but for now this are
my main problem...

Im using .htaccess to help with the redirection handling, but Im open
to user the best way as possible.
Thanks.

best regards [ ]'s
Sep 4 '08 #1
Share this Question
Share on Google+
4 Replies


P: n/a
maginot-lpi2 wrote:
Hi everyone.

Im developing a project wich have some url cloking needs, like the
when made with fotolog.com.
If the user type: www.domain.com/USER
this will lead to a 404 error page witch is used to map the full url
and redirect the user to the long URL ( ex.: www.domain.com/profile.php?user=USER
)

I want to make that to make the site more user friendly, like when you
type www.fotolog.com/USER and you are in the user profile. But, I want
that the URL stays with the mask to easy the navigation, Im still
thinking about how to handle the internal links, but for now this are
my main problem...

Im using .htaccess to help with the redirection handling, but Im open
to user the best way as possible.
Thanks.

best regards [ ]'s
..htaccess is the best way to handle it.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Sep 4 '08 #2

P: n/a
On 4 Sep, 04:16, Jerry Stuckle <jstuck...@attglobal.netwrote:
maginot-lpi2 wrote:
Hi everyone.
Im developing a project wich have some url cloking needs, like the
when made with fotolog.com.
If the user type:www.domain.com/USER
this will lead to a 404 error page witch is used to map the full url
and redirect the user to the long URL ( ex.:www.domain.com/profile.php?user=USER
)
I want to make that to make the site more user friendly, like when you
typewww.fotolog.com/USERand you are in the user profile. But, I want
that the URL stays with the mask to easy the navigation, Im still
thinking about how to handle the internal links, but for now this are
my main problem...
Im using .htaccess to help with the redirection handling, but Im open
to user the best way as possible.
Thanks.
best regards [ ]'s

.htaccess is the best way to handle it.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attglobal.net
==================
With mod_rewrite (try Google for more info on how to configure it)

C.
Sep 4 '08 #3

P: n/a
On 4 set, 09:01, "C. (http://symcbean.blogspot.com/)"
<colin.mckin...@gmail.comwrote:
On 4 Sep, 04:16, Jerry Stuckle <jstuck...@attglobal.netwrote:
maginot-lpi2 wrote:
Hi everyone.
Im developing a project wich have some url cloking needs, like the
when made with fotolog.com.
If the user type:www.domain.com/USER
this will lead to a 404 error page witch is used to map the full url
and redirect the user to the long URL ( ex.:www.domain.com/profile.php?user=USER
)
I want to make that to make the site more user friendly, like when you
typewww.fotolog.com/USERandyou are in the user profile. But, I want
that the URL stays with the mask to easy the navigation, Im still
thinking about how to handle the internal links, but for now this are
my main problem...
Im using .htaccess to help with the redirection handling, but Im open
to user the best way as possible.
Thanks.
*best regards [ ]'s
.htaccess is the best way to handle it.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attglobal.net
==================

Withmod_rewrite(try Google for more info on how to configure it)

C.

Yeah, Im searching for that.... One thing I noticed is that when it
cloaks the URL all the link if not as absolute they will not work.

Im trying to map as http://domain/controller/view/param/param/param/.../

its nicely working, just need to make mod_rewrite works for me.

Sep 4 '08 #4

P: n/a
maginot-lpi2 wrote:
On 4 set, 09:01, "C. (http://symcbean.blogspot.com/)"
<colin.mckin...@gmail.comwrote:
>On 4 Sep, 04:16, Jerry Stuckle <jstuck...@attglobal.netwrote:
>>maginot-lpi2 wrote:
Hi everyone.
Im developing a project wich have some url cloking needs, like the
when made with fotolog.com.
If the user type:www.domain.com/USER
this will lead to a 404 error page witch is used to map the full url
and redirect the user to the long URL ( ex.:www.domain.com/profile.php?user=USER
)
I want to make that to make the site more user friendly, like when you
typewww.fotolog.com/USERandyou are in the user profile. But, I want
that the URL stays with the mask to easy the navigation, Im still
thinking about how to handle the internal links, but for now this are
my main problem...
Im using .htaccess to help with the redirection handling, but Im open
to user the best way as possible.
Thanks.
best regards [ ]'s
.htaccess is the best way to handle it.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attglobal.net
==================
Withmod_rewrite(try Google for more info on how to configure it)

C.


Yeah, Im searching for that.... One thing I noticed is that when it
cloaks the URL all the link if not as absolute they will not work.

Im trying to map as http://domain/controller/view/param/param/param/.../

its nicely working, just need to make mod_rewrite works for me.

Try alt.apache.configuration.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Sep 5 '08 #5

This discussion thread is closed

Replies have been disabled for this discussion.