SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    Jan 2005
    Location
    Paris
    Posts
    370
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    .htacces Rewriting - Server Migration

    In the process of migrating an application between servers,

    i had to introduce using vhost in the configuration and now the now the urls of the application have changed from this form: http://application.app/app_v1/...

    to this one: http://applicatiopn.app/... le app_v1 a sauté.

    I am looking for a solution to use in a .htaccess which will redirect call to urls like http://application.app/app_v1/index.php to url of that type http://application.app/index.php

    thanks in advance
    On a PHP/Java/XML/Javascript/MySQL internship right now!

  2. #2
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,605
    Mentioned
    19 Post(s)
    Tagged
    2 Thread(s)
    m-e,

    It looks like mod_alias is the ideal solution for you, something like
    Code:
    Redirect permanent /app_v1 http://application.app.com/
    .

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •