redirect query string Via htaccess

Started on the old forum in June 2012 · view the original in the archive · old links redirect here

1 reply · 640 views · started 14 years ago · 1 min read

2 participants
shushant Developer · 207 posts #1

hello guys currenty i m Learning Google ajax's crowling scheme now i got bit confused 😛 now In my app i m likey to use hash fragments like: mysite.com/#!widget=platform&pid=Xxx I understand google will fetch this url and make a request to the server in this form: mysite.com/?escaped_fragment=widget=platform&pid=xxx]oursite.com now i made a httacces to avoid using escaped_fragment for every pages ex page?escaped_fragment search?escaped_fragment so i made a htacces file

RewriteEngine on
RewriteCond %{QUERY_STRING} _escaped_fragment_=(.?)
RewriteRule ^(.*)$ do.php$1 [R=302,QSA]

but it does'nt redirect those string after escaped_fragment

just_m3. Developer · 199 posts #2

try using redirect match instead mod_rewrite

something like

RedirectMatch 301 ^/example/(.*)$ http://my.tld/$1

This is ten percent luck, twenty percent skill Fifteen percent concentrated power of will Five percent pleasure, fifty percent pain 😂And a hundred percent reason to remember the name!

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close