Redirecting all pages from old URL to index page of new URL

Hello everybody..
I have an Apache configuration question, can't work out the procedure in Server Admin.
Basically I have a website at "oldurl.com". In Server Admin, I have the site set to serve a PHP file which runs a 301 redirect to "newurl.com". Works nicely.
Trouble is, if somebody requests "oldurl.com/somepage", the 301 redirect does not function.
I need all pages on "oldurl.com" to forward to the homepage of "newurl.com".
I suspect I need to type something into the "URL Aliases and Redirects" pane in Server admin, and some sort of wildcard, but I'm stumped. I have read about fiddling with the .htaccess file, but surely this is not necessary?
Hope you can help. Thank you!

To give a more detailed (and just possibly relevant) example of what koncept's talking about, suppose you wanted to redirect browsers from any page on the old domain to a corresponding page on the new domain (e.g. http://oldurl.com/this/that/theother.html would redirect to http://newurl.com/this/that/theother.html, rather than just http://newurl.com/). You'd make a rule in the oldurl.com site like this:
Type: RedirectMatch
Pattern: (.*)$
Path: http://newurl.com$1
The .* matches zero or more anythings, the $ matches the end of the url (to make sure we get the whole thing, not just part of it), and the parentheses capture the match so we can use it in the redirect path as $1. Note that the pattern is matched against the path part of the original url (i.e. "/this/that/theother.html" in the example I gave earlier), so we can just tack it onto the new domain name and we're set.

Similar Messages

  • Rediect particular URLs to index page

    Hi,
    From Apache1.3, I have to redirect all the URLs coming from port http://mydomain.com:9001/servlet/* to a index page (index.html).
    I tried giving "Redirect" directive under mod_alias
    Redirect /servlet http://mydomain.com:9001/index.html
    but it is looking for http://mydomain.com:9001/index.html/* and is not redirecting it to the file. How can I do this.

    Allie,
    Can you tell me how you figured out how to have one index page link to a 2nd index page like the california example you described?
    I am trying to do exactly that but layout is not happening the way I would like so i think I am doing something wrong
    Thanks
    Patrick

  • HT201269 How to transfer all info from old iPhone to new iPhone 5

    HOw do I transfer all data from old iPhone to iPhone 5

    Randers -
    I'm trying to move data/restore my new ATT 5 from my old 3G. I had to use iTunes and I followed the directions in the link a couple posts above, but I never got the option at step 5 to "restore from a Backup".  instead I got a confirmation page that xxx-xxx-xxxx was my phone number. i said yes.
    how do i restore from the old 3G now? (one point the 3g was running ios 5.1.1, not sure if that matters).
    appreciate any help/advice

  • Got a new external hard drive. Transferred all files from old hard drive to new hard drive. Connected hard drive to macbook. How do I get all my files to be recognized by iTunes and my already made playlists??

    Got a new external hard drive. Transferred all files from old hard drive to new hard drive. Connected hard drive to macbook. How do I get all my files to be recognized by iTunes and my already made playlists??

    Trying to download photos from IPHONE, IPAD to IPHOTO in IMAC after installing new hard drive.
    How did you import the photos to iPad and iPhone?
    If the photos have been synced to the iPhone and iPad using iTunes, you cannot sync them back.
    See this document:  http://support.apple.com/kb/HT4236
    You can't reimport pictures synced from your computer to your device back to your computer. You can only import pictures in the Camera Roll or Saved Photos from your device to your computer. If you need to retrieve synced photos from your device:
    If your photos are not in the Camera Roll on your devices, save them to the Camera Roll, share them to the Photo Stream, mail the photos, or, if you have iPhoto on the devices, use iTunes Photo Sharing.
    http://help.apple.com/iphoto/iphone/2.0/?handbuch#blnkee26bc1
    Save photos to your computer using iTunes
    Connect your iOS device to your computer.
    Tap a photo, album, event, web journal, or slideshow and tap Share> iTunes.
    Tap Selected, or change the photos you want to save (if you are saving a slideshow skip to step 4):
    Select different photos: Tap Choose Photos, tap one or more photos, and tap Next.
    Select a range of photos: Tap Choose Photos, tap Range, tap the first and last photos in the range, and tap Next.
    Select all the photos in an album or event: Tap All.
    In iTunes, click the button for your device and click Apps at the top of the window.
    Below File Sharing, select iPhoto (in Apps).
    Select the Shared Photos folder under iPhoto Documents.
    Click Save To and select the location on your computer where you want to save the items.
    To view your photos, go to the Finder and look in the location you selected above.

  • Just got new macbook pro (13inch) and restored all data from old mac via time machine. Now whenAudio drop out for 3-4 secs every 10 - 15 secs!! What is going on and what can I do?

    Just got brand new macbook pro (13inch) and restored all data from old mac via time machine. Now when I p/back a track in logic I get audio drop out for 3-4 secs every 10 - 15 secs!! What is going on and what can I do? Its the same version of logic and all other functions seem fine!

    First of all, why did you say yes to Nero Back up before researching what it does with files already on the HDD? When I install Nero, the Back Up is the first thing I disable, it is a nagging pain, there are much better backup programs available. There are several file recovery programs out there to recover deleted files, that is, if that is what happened. Also, if you haven't overwritten the files, so you should be able to find them.

  • How do I transfer my home page from old desktop to new laptop, and get email

    I bought a new laptop and want firefox home page from old desktop transferred, also how do I get email, address book,etc. like before??

    http://support.mozilla.com/en-US/kb/Recovering+important+data+from+an+old+profile

  • How do I transfer all info from old iPad to my new one including ibooks?

    How do I transfer all info from old iPad to my new one including ibooks?

    Sync your new iPad with the same computer that you synced your old one with.

  • I migrated all data from old PC to new and iTunes successfully transferred to new PC. When I click on a song it says it cannot locate the original. How does one map iTunes file to iMusic to enable play from original files ?

    Subject: Migration
    I migrated all data from old PC to new and iTunes successfully transferred to new PC. When I click on a song it says it cannot locate the original. How does one map iTunes file to iMusic to enable play from original files ?

    Subject: Migration
    I migrated all data from old PC to new and iTunes successfully transferred to new PC. When I click on a song it says it cannot locate the original. How does one map iTunes file to iMusic to enable play from original files ?

  • Got new ipad 4 now can't erase all data from old ipad2

    Want to erase all data on old ipad2 because I bought a new ipad4 but it asks for Apple ID password and won't let me use password.

    If "it won't let you use" your password, try resetting the password.
    Apple ID: Changing your password

  • How do I import my video files from old iPhoto - in time machine - to new iPhoto?  Photoes came across, video said incompatible.

    how do I import my video files from old iPhoto - in time machine - to new iPhoto?  Photoes came across, video said incompatible.
    i have moved from a mac pro to a mac mini,
    Mini now has mavericks and latest iLife stuff, I clicked import, was all good, then at end, no videos came across.
    Is Mavericks,/iPhoto having a compatibiltiy issue with some video formats....???
    Your help is appreciated gang.: )

    Please describe exactly what you did. In moving to a new machine no importing is involved. The best way is to simply connect the two computers together and drag the iPhoto library from the old one to the pictures folder go the new one and launch iPhoto
    LN

  • When visiting certain sites, if I click on a featured link, I get the message: "Firefox has prevented this page from automatically directing to another page", How do I disable this so I am able to get to the page I want?

    In this particular case, I was on a page that offered group discounts ("deals") that can be purchased for a limited time. To make the purchase, I needed to click onto the link with the name of the deal being offered. However, upon clicking on that link, I received the message from Firefox that it was preventing the page from automatically directing to another page i.e. the page that would have allowed me to make my purchase. Please answer quickly since the deal I want to purchase expires in three hours!

    See:
    * [http://kb.mozillazine.org/Menu_differences Tools > Options] > Advanced > General : Accessibility : [ ] "Warn me when web sites try to redirect or reload the page"
    * [[Options window - Advanced panel#General_tab]]
    See also: http://kb.mozillazine.org/accessibility.blockautorefresh

  • How can get 40,000 pix from old computer restored by Carbonite to new computer into PE 11 or 12?

    I bought a new,  faster, more storage Windows 8 computer.
    I had 40,000 pix on old computer tagged with names, event, location, date with PE 11. Also several projects involving hundreds of pix.
    Carbonite restored all files (250 gig) from old computer to new, and their tech support says they all are on the new computer.
    I bought the new PE 12 and installed it on new computer.  It has only found 4,000 pix.  I don't at all like PE 12 after enjoying PE2-11 and managing all my  pix with it.  PE11 was clearer in the pix presentation.
    Apparently when imported to the new computer, I lost the tags that went to events, location, and the person tags did not  separate family from friends etc.  I can't even find my projects.
    I was so frustrated with PE12, that I installed PE11, but everytime I try to open the Organizer, it doesn't open.
    Help.  I am so frustrated.  I am pretty sure  before I made the transition that I had written all tags to files.  When I put PE11 on the new computer, why won't it give me what I had on the old.
    This is probably my 10th generation computer change, and I never had such problems before with PE.

    I am using 10 and 11 instead of 11 and  12.  I tried to go back and edit,
    but couldn't figure out how.  Sorry,  typing errorC.
    In a message dated 2/6/2013 7:02:33 P.M. Eastern Standard Time, 
    [email protected] writes:
    Re:  How can get 40,000 pix from old computer restored by Carbonite to new 
    computer into PE 11 or 12?
    created by Jeff A Wright (http://forums.adobe.com/people/JeffAWright) 
    in  Photoshop Elements - View the full  discussion
    (http://forums.adobe.com/message/5050443#5050443)

  • Need 3 pages from a report of 1 page at every run

    Hi Friends,
    I have developed a report which is an Invoice. Every invoice will be 1 page only. Now what i need is when ever the user will run the report, the report will give 3 pages (same page 2 & 3,i.e. copy of page 1) as a set of invoices, with the headings as:
    Page 1: Original for buyer
    Page 2: Original for consignee
    Page 3: Self Copy
    I also want to display these messages page-wise on the report.
    Now, The problem is how can I get 3 pages from a report of 1 page everytime.
    Thanks in advance,
    Ankur

    select nr, your_present_report_select_columns
    from
    (select 1 nr from dual
    union
    select 2 nr from dual
    union
    select 3 nr from dual
    ) n
    ,( your actual report select) a
    This should improve performance, I think...
    Try and see. The same about grouping
    Message was edited by:
    BEDE

  • How do I get my apps from old Apple ID transitioned to my news Apple ID so they can be used

    How do I get my apps from old Apple ID transitioned to my news Apple ID so they can be used

    I'm afraid I don't understand what this means. It seems unrelated to your topic.

  • How to remove all pages from layout? (except Master Page)

    Geetings Experts:
    I'm implementing additional security measures into my 'initialze' event, where I'll check some global variables and render the file unreadable if needed.
    Which object and properties do I access to remove all my pages from the form?
    I would like to createa a function that removes all the sub pages, leavning only the Matster Page, enable a label in the MasterPage and save itself.
    I searched for xfa.layout and Page[n].remove() methods but cannot find any reference to these.
    .presence = "hidden", fulfills my purpose but the pages remian visible and I need for a clean solution no pages are visible.
    I'm advanced in C# but a novice in LC JavaScript, so any comment, reference or code snipet will be greatly appreciated
    Thank you for your time,
    Ivan A. Loreto – Computer Education Technician
    LOMA LINDA UNIVERSITY | School of Allied Health Professions - Department of Physical Therapy
    [PDF Development Platform]
    Windows XP SP3
    Acrobat Pro 9
    LifeCycle Designer ES 8.2

    Hi Ivan,
    The particular syntax of Javascript in LC Designer is different from that used in Acrobat and different (as I understand it) from core javascript and other applications. There are several free guides on the Adobe web site which cover Acrobat and LC:
    http://www.adobe.com/go/learn_lc_scriptingBasics
    http://www.adobe.com/go/learn_lc_scriptingReference
    http://www.adobe.com/go/learn_lc_formCalc
    http://www.adobe.com/devnet/livecycle/articles/Adobe_XML_Form_Object_Model_Refer ence.pdf
    http://www.adobe.com/devnet/acrobat/pdfs/lc_migrating_acrobat_xmlform.pdf
    And a very handy resource (it goes back to version 6, but is still applicable):http://partners.adobe.com/public/developer/en/tips/CalcScripts.pdf
    JP Terry's book on LC Forms is very good and we use www.pdfscripting (which is a subscription service). If you are going to be doing a lot of LC Designer work, these may be of help.
    I am not a coder, so I going to try and work through your script. Bear with me if you already have this sorted...
    The script looks ok and you are using the resolveNode method correctly. Seeing topmostSubform in the resolveNode indicates that you imported an existing document into LC. This is fine, but sometimes it restricts some of the functionality.
    For starters I think that mPg is returning null. You can use the following in your script to see what is happening (debugging) and then comment it out:
    console.println("mpg: " + mPg);
    Then when previewing hit control+J to bring up the javascript console, then will show the value of mPg when that script executes.
    Try deleting the SOM up to #pageSet:
    var mPg = xfa.resolveNode("#pageSet.MasterPage1");
    The javascript console will show you when the script is working.
    In relation to the loop, I would advise a few changes:
    for (var i=1; i <= xfa.layout.pageCount(); i++)
         var vPage = ("xfa.form.topmostSubform.Page" + i).toString();
         //console.println("vPage: " + vPage);
         var curPage = xfa.resolveNode(vPage);
         curPage.presence = "hidden"; 
    }//next page
    There are a few things here:
    I would declare i as a variable, not an integer (not sure if it makes a difference);
    I would use pageCount rather than numPages and then <=;
    There was an extra ; at the end of the loop declaration;
    I would break the script into steps and get the full SOM of the page as a variable first and then resolveNode that variable;
    You don't need to go to the current page;
    I tend to name master pages with a capital "P" and pages with a small "p". Personal preference, but it can make tracking script easier.
    Have a crack off that and hopefully you can get it to work,
    Niall
    ps another tip, if you want to reference an object in script. First click on the object you want to script for and then scroll (or click on the master page) for the object you want to reference. Click inside the script editor and then when you move the mouse back into the form, press and hold Control, this will turn the mouse into a "V". When you click on the object you want to reference it will insert the SOM into the script. If it needs the resolveNode it will automatically put that in for you. Holding Shift and Control will insert a fully resolved node.

  • Need help getting ALL iTunes from old comp hard drive

    Old computer XP Home died after house was hit by lightning. Surge protector gave it's life but not enough to save the day. However both hard drives from old computer are fine and function via connection of USB external hard drive enclosure.
    New computer is Vista Home Premium on AMD64duo w/4G RAM and 500GB hard drive.
    Connected old hard drives to USB and can see everything. Did Import Folder and copied most files from old iTunes Music directory. (I say most files because iTunes continues to crash after approx 10 minutes of this copy process. On 17th try now.)
    Can see and play the music that got copied but artwork is gone. Playlists are gone. Ratings gone. Basically all the preferences of how I had the old iTunes setup.
    Needing help in understanding how to get Artwork and anything else I can from the old iTunes.
    Have not tried to plug in iPod yet. Will wait atm.
    First old drive had Program files and Second old drive had all Data files.
    AMD64 AthlonX2   Other OS   Vista Home Pre AMD64 duo 4G
    AMD64 AthlonX2   Other OS   Vista Home Pre AMD64 duo 4G

    First, I followed the instructions on this site for Backing up itunes library by copying to a external hard drive.........
    That's what it does. It makes a backup copy of the iTunes folder. iTunes will not use that folder or do anything to that folder.
    All that succeeding in doing was mirroring whatever I did on the C:/ drive on the E:/ drive i.e. if I deleted itunes from the C:/ drive it disappeared from the E:/ drive.
    Do you mean after you followed the instructions and copied \Music\iTunes folder to the external drive and then deleted something from iTunes, it deleted it from the external drive also?
    As above, iTunes will not use or do anything to that folder.
    Next, I followed these instructions for Moving the itunes media folder to the external drive.
    Why? You already copied the entire iTunes folder (including th emedia folder) to the external drive.
    Hold Shift and launch iTunes.
    Select *Choose library* and select the _iTunes library.itl_ file in the iTunes folder on the external.
    This too didn't help as the media folder is not the problem, its the library as its 735kb!
    What do you mean "the library"?
    735kB is small for the iTunes library.itl file and a single file in iTunes is larger than that.
    Am I right in thinking there's no way of moving the library to the external drive whilst wiping it from the C;/ drive?
    Yes. Follow my intruction above (Choose library) and iTunes will use the iTunes folder on the external.
    You can then delete \Music\iTunes on the C: drive.

Maybe you are looking for

  • Mail messages appear then disappear

    Hi All, We have been having so strange issues lately with emails coming into users mail clients and then dissaperaing right away. We are running OS X 10.6.8 server as our primary mail and authentication server, as well as iChat and iCal. the server i

  • Pixma mg3200 not printing from mac

    I have recently started having troble printing from my Pixma mg3200. I have a MacBook Air, it has worked in the past. It is set up for wireless. This is the message I get. Support Code : 300 The printer does not respond. Make sure that the printer is

  • Artwork in Cover Flow is blurry

    For some reason the album covers in the cover flow view are very blurry. I realize that it gets less sharp as you make the image larger, however when I click on the album cover in the lower left hand corner, and make it the same exact size as the art

  • Copy and paste are still not working even after many workarounds

    This usually happens to me randomly. I would say that there is about a 25% chance that my paste works. The copy function seems to work, but when it comes to pasting, my browser does not offer the pasting button and it stays invisible. I have disabled

  • ODI Integration - Hyperion Planning inbound to GL

    ODImates, I am designing a full integration (2 way-sided) from EBS-GL to Hyperion Planning and Hyperion Planning back to EBS-GL. The first side is almost finished, I extract the information from GL and create the specific format used by OTL Loader to