Giter Site home page Giter Site logo

bfurlmigrate's Introduction

bfurlmigrate

bfurlmigrate is used to intercept old urls and map to ez objects by remote_id

Installation

  • cp extension/bfurlmigrate/bin/php/index_bfurlmigrate.php

  • mysql -u -p < extension/bfurlmigrate/sql/mysql/bfurlmigrate.sql

  • edit apache rewrites (or .htaccess) # Add old url rules (example) RewriteRule ^.story.jhtml. index_bfurlmigrate.php [L] RewriteRule ^.news.jhtml. index_bfurlmigrate.php [L] # Allow bfurlmigrate to run RewriteRule index_bfurlmigrate.php - [L]

  • Populate bfurlmigrate table with urls and ez object remote_ids

  • Browse to old url and be redirected to new ez object!

Usage

When migrating an existing website to eZ publish the old urls will become invalid. Apache rewrites can be used to funnel old url patterns into the /index_bfurlmigrate.php script. The bfurlmigrate script will take the old url and lookup a record in the bfurlmigrate table. If an old url match is made then the user will be redirected to the ez object's page. If no old url match is made then the homepage will be presented. In this way the investment in old urls yields 1-to-1 mapping to ez object pages. This can preserve search engine traffic and inbound links during the period of transition.

Author

David Sayre

Legal

bfurlmigrate is distributed under the AGPL version 3

This project is in no way affiliated with eZ Systems AS, or eZ Publish

Copyright © 2013 Beaconfire

bfurlmigrate's People

Contributors

davidsayre avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.