Redirecting joomla site to html site


#1

Hi There,
I’ve been puzzling over redirecting a clients existing site which was built with joomla to a new site, same domain, which we have put together using html.
I want to redirect the pages already indexed by google which look something like this http://www.example.com/content/view/1/2/ to the new page which is http://www.example.com/testimonials.html

I have put this code in the htaccess file but it ain’t working… Am I doing something wrong…?

RewriteEngine On

RewriteBase /

RewriteRule ^/content/view/1/2$ http://www.example.com/testimonials.html [L]

301 Permanent Redirects

Redirect 301 /content/view/1/2/ http://www.example.com/testimonials.html

Is there something obvious I’m doing wrong…? I have used the htaccess file to redirect pages successfully previously with other sites but this is the first time to try redirecting joomla pages

Thanks for any assistance

Pete


#2

You’d want this:

RewriteRule ^content/view/1/2(.*)$ /testimonials.html [L]

Or you can use this:

Redirect 301 /content/view/1/2  /testimonials.html
Redirect 301 /content/view/1/2/ /testimonials.html

#3

thank you… have sorted it. Much appreciated for your time…

Pete


#4

You’re welcome :smiley: