Transfering clients site, remove parent name from url

Permalink
Hi
I'm in the process of redesigning a clients site using Concrete. The problem is the client requires the file structure to be exactly the same for SEO purposes. I have figured out how to redirect all the old .html extensions but now have a problem with the parent page showing in the url.

Example...

The clients site currently looks like
http://www.domian.com/item.html

The way i'm setting it up it looks like
www.www.domian.com/parentname/item...

Is there an easy way of removing the parent from the url so it appearshttp://www.domian.com/item

Thanks in advance:-)

 
jaredquinn replied on at Permalink Reply
jaredquinn
The easiest solution would be to add page aliases for each page representing the old file names; however these would trigger a redirect to the new deep paths.

I'm guessing that solution isn't ideal for you.

Doing it without the page-aliases and redirects would involve working some magic in Request::getRequestedPage() or Page::getByPath(), and it's likely to break other things if you do... I'd personally be leaning towards the aliases.
somenboll replied on at Permalink Reply
For SEO purposes the best way to redirect is through HTTP headers. I recently did a similar move from an old sitemap to concrete5 and did all redirects in the .htaccess-file.

Depending on the old file structure this is more or less work =)

Just don't use PHP redirects, make sure it's a valid HTTP 301 redirect (permanent move)!
oakleafg replied on at Permalink Reply
This seems to work but i'm just wondering if the SEO will be effected or if it works the same as doing a 301 redirect (there are loads of pages so don't really want to redirect each page!)

Here is what I have done...
Added in Additional Page URL(s) just the page title then in the htaccess added AddType x-mapp-php5 .html .htm.
It seems to redirect OK but not sure if i'll have any problems with the sites ranking.

Thanks.