301 Redirect with a Form

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I've been using apache's rewriting to change our arcane CMS URLs into
something more search engine friendly.  It's been working well except
for one minor issue.  Every now and then our CMS will generate a form
(e.g. to search for items or add to cart, etc) with a form tag like
this using our old style URL's:

<form method="post" action="/sitepages/pid123.php">

Part of the .htaccess file will cause a 301 redirect for this form of
URL to something like /foo/search-items 

The problem is that the form's post data doesn't seem to survive the
redirect so I have to manually change the form tag to:

<form method="post" action="/foo/search-items">

Not a big problem until you talk about 100's of sites and 1000's of
pages to sift through.  Is there a way to do a 301 redirect and not
lose this data?  If not my other thought was not to redirect if we're
doing a form POST, though I'm sure our SEO nuts will object.

Curious if anyone has any thoughts?

Josh

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux