how do i prevent the url from changing in the address bar?

Discuss practical ways rearrange URLs using mod_rewrite.

how do i prevent the url from changing in the address bar?

Postby verbatim » Sun Jun 19, 2005 12:15 pm

quick question:
how do i prevent the url from changing in the address bar?

currently, when i type timmy.bar.com - it goes to www.bar.com/okay/timmy
but the address bar will continue to show timmy.bar.com.

After clicking on a link though, it will show the full url.

how do i configure it so that the address bar always shows timmy.bar.com?

thanks

my current code
[code]

RewriteCond %{HTTP_HOST}!^(www\.)?(www¦mail¦images)\.domain\.com
RewriteCond %{HTTP_HOST} ^(www\.)?([^.]+)\.bar\.com
# ok rewrite now
RewriteRule ^(.*) http://www.bar.com/okay/%2/$1 [P,L]
verbatim
 
Posts: 3
Joined: Sat Jun 18, 2005 8:42 pm

Return to Friendly URLs with Mod_Rewrite

Who is online

Users browsing this forum: No registered users and 110 guests

cron