Real Estate Forums
| Coding HTML, ASP, PHP, JAVA MYSQL and more. All coding questions should be asked here. |
![]() |
|
|
Thread Tools | Display Modes |
|
|||
|
I'm trying to redirect my page called My Page.htm to an address http://www.mysite.com/my_page.php
How can i do that if i have a space between the word "My" and "Page" ? I've tried doing this: RewriteRule ^My Page.htm$ http://www.mysite.com/my_page.php [R=301,L] But didn't work. So i've tryed this too: RewriteRule ^My%20Page.htm$ http://www.mysite.com/my_page.php [R=301,L] And nothing happens... anyone can help me? |
|
||||
|
%20 if you actually have a space in the filename, that is how it should be parsed by the browser and mod engine, can you show us the URL you are trying to redirect, and the URL you are trying to redirect to?
Thanks
__________________
Want to save up to 50% off Real estate webmasters product websites & common upgrades? Check out my latest blog post regarding our end of the year sale. |
|
|||
|
RewriteRule ^My([^/])Page.htm$ http://www.mysite.com/my_page.php [R=301,L]
Edit:this will write anything betweenMy and Page so My4Page.htm .. will also be rewriten. Not sure If that is good. Last edited by Aaron; 11-25-2005 at 11:17 PM. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|