|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hello ... I have a bit of a problem one of you gurus may be able to help me with. I have changed the technology on our site a bit, and really need to be able to REDIRECT certain pages to the new pages from within .HTACCESS using a permanent redirect...
I have been trying on the following format (real example) and they dont work ... redirect permanent /index.php?pid=1&user=det http://rentals.azur-online.com/prope...tail.php?pid=1 I imagine that this is because the first URL is a dynamic one ... database generated. Is there any way to do this? Please help! Thanks! Lao
__________________
Fear is a habit. I am not afraid! http://www.azur-online.com and by the way ... STOP killing Zimbabwe! http://www.team-zimbabwe.net |
|
|||
|
Hello Mike, thanks for your input.
In answer, yes, I have other redirects within the same .htaccess which ARE working. EXAMPLE: redirect permanent /html_pages/pid1.html http://rentals.azur-online.com/prope...tail.php?pid=1 That one works fine ... which is why I thought that perhaps the one that is NOT working was due to .htaccess being unable to redirect a dynamic URL! Thanks for hte info that it SHOULD work in theory. I will try get error logs from my Sysadmin and see if there is any light he can shed Any other thoughts from anyone would still be really appreciated, though, because as yet problem is still unresolved! Lao
__________________
Fear is a habit. I am not afraid! http://www.azur-online.com and by the way ... STOP killing Zimbabwe! http://www.team-zimbabwe.net |
|
||||
|
It is possible you may need to add a backslash in front of the ? so it reads as /index.php\?pid=1
Worst case scenario you can use the following code: RedirectMatch 301 /index.php?(.*)&iser=det http://rentals.azur-online.com/property_detail.php?$1
__________________
The best way to learn anything, is to question everything. |
|
|||
|
I have tried both those options and still no joy, FYI. Waiting on my server admin coming back to me with error logs, so will wait and see what they turn up. I will let you know, again just FYI and if this is of use to anyone else if and when I have any joy!
Lao
__________________
Fear is a habit. I am not afraid! http://www.azur-online.com and by the way ... STOP killing Zimbabwe! http://www.team-zimbabwe.net |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |