Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-22-2011, 09:54 AM   PM User | #1
PetNov
New to the CF scene

 
Join Date: Jun 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
PetNov is an unknown quantity at this point
Question Parameter to URL and back

Hi,
I would like to use .htaccess (and regex) to accomplish this:

After typing query into searchbox and pressing enter, the url is:

http://subdomain.domain.com/index.ph...money&search=1

but address bar in browser is (for user and google) showing this:

http://subdomain.domain.com/money


AND

after typing in address bar in browser

http://subdomain.domain.com/money


it actually goes to

http://subdomain.domain.com/index.ph...money&search=1

but in address bar in browser still showing

http://subdomain.domain.com/money


I tried everything but no success. Eg. this:

Code:
RewriteCond %{QUERY_STRING} ^query=(.*)$ [NC]
RewriteRule ^/index.php$ /%1 [NC,L,R=301]
Pls, could you help? Thank you very much.
PetNov is offline   Reply With Quote
Reply

Bookmarks

Tags
htaccess, parameters, url

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:34 AM.


Advertisement
Log in to turn off these ads.