301 Redirect Problem - Programming

Status
Not open for further replies.

englandrm

Senior Member
Joined
Nov 11, 2010
Messages
942
Reaction score
440
I'm trying to get my clients' clients to leave reviews on their Google Place Pages and other review sites. Real reviews, from real clients, so I'm assuming a high approval rate (Google won't filter it out).

What I want to do is make MySite.com/review automatically redirect to the long GooglePlacePage URL.


I did it in php and html, but both times I ended up with

MySite.com/review.php
MySite.com/review.html


How can I make it just MySite.com/review ?

Thanks.
 
Easiest way is just to make a new folder called Review.
Inside that folder add a file called index.php with the following content.

Code:
<?
Header("HTTP/1.1 301 Moved Permanently"); 
Header("Location: http://www.new-url.com"); 
?>
 
Easiest way is just to make a new folder called Review.
Inside that folder add a file called index.php with the following content.

Code:
<?
Header("HTTP/1.1 301 Moved Permanently"); 
Header("Location: http://www.new-url.com"); 
?>

Wow, you are a genius. Thank you so much.
 
Status
Not open for further replies.
Back
Top