Apache Rewrite doens't retains the friendly URL

CLOSED

Apache Rewrite doens't retains the friendly URL

Postby selvam_pec51 » Thu Feb 17, 2011 7:44 am

Hi,

I would like to rewrite the URL
http://host:port/cs/example/company/apple
to
http://host:port/cs/Satellite?pagename= ... pany/apple.

And I have written the following rewrite rule:
RewriteEngine on
RewriteRule ^/cs/example/(.*)$ cs/Satellite?pagename=ControllerPage&webroot=http://host:port/cs/example/&path=$1 [L]

But, the above one is not rewriting as expected. But, When I include Redirect flag, it is redirecting, but keeping the friendly url in the browser.

RewriteEngine on
RewriteRule ^/cs/example/(.*)$ cs/Satellite?pagename=ControllerPage&webroot=http://host:port/cs/example/&path=$1 [R,L]

Could you someone please help?

Thanks in advance!

Kind Regards,
Selvandhan M
selvam_pec51
 
Posts: 7
Joined: Wed Jul 30, 2008 5:41 am

Return to New Threads/Problems

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest

cron