Folder Rewrite using .htaccess file?

Hi I have created another folder in my website for something to clone a folder I currently have but no longer want to use. I am looking to redirect anyone tryping in the directory for my old folder to my new one using a .htaccess file or any other method you may suggest.
The paths I want to re direct are as follows www.dor2dor.com/postpeople to www.dor2dor.com/leaflet-distribution-jobs
If anyone can let me know the code I need to do this it would be much appreciated.

This will redirect postpeople/something to leaflet-distribution-jobs/something
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^postpeople(.*) /leaflet-distribution-jobs$1 [NC,R=301,L]
If you want to redirect postpeople/anything to leaflet-distribution-jobs, then
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^postpeople(.*) /leaflet-distribution-jobs [NC,R=301,L]
Kenneth Kawamoto
http://www.materiaprima.co.uk/

Similar Messages

  • Can I use .htaccess file for authentication if running pl/sql gateway?

    The server is on Windows system with Apache as the web listener
    and webDB as pl/sql gateway so if any script is under pls/,
    server would invoke pl/sql. My question is: I know .htaccess can
    be used for directory protection, in this case(with the pls/),
    can I still use it? if yes, where should I put the .htaccess
    file?
    Thanks very much in advance.
    Patricia

    Welcome to the discussions!
    +Is this feasible ?+
    Feasible, yes. Practical, no...unless you are willing to put up with very slow access to files that are on the Time Capsule.
    Keep in mind that the Time Capsule was designed primarily for Time Machine backups, not as a media server for quick access to data. You might want to explore other options that would allow much faster access to files when you need them.

  • Using .htaccess file to block access from certain networks

    Does anybody have any tips on getting a .htaccess file to work to block access to my Web Access server from certain network ranges on SuSE 10 SP3 with GW 8.0.2.
    It does seem like the file does anything? With Web Access I'm not exactly sure where to put the file. I used to accomplish this using iptables, but I was seeing if I could do the same with .htaccess.
    Thanks!

    Originally Posted by bbilut
    Does anybody have any tips on getting a .htaccess file to work to block access to my Web Access server from certain network ranges on SuSE 10 SP3 with GW 8.0.2.
    It does seem like the file does anything? With Web Access I'm not exactly sure where to put the file. I used to accomplish this using iptables, but I was seeing if I could do the same with .htaccess.
    Thanks!
    You can block a range with the .htaccess file, for example by defining the range as
    Code:
    order allow,deny
    deny from 10.0.
    allow from all
    ...that would block all 10.0.0.0 upto 10.0.255.255 addresses
    You cannot use this file in tomcat, so useless I think... but as Apache is used as frontend for the tomcat webacc application and you might be able to edit the gw conf apache files to include the range denies (which by default can be found in /etc/opt/novell/groupwise/webaccess/gw.conf).
    Maybe this thread might help as there are some examples in howto include denies in the .conf files.
    Deny IP Ranges in httpd.conf Apache Web Server forum at WebmasterWorld
    Do make a backup of you current gw.conf in case it blows up :)
    -Willem

  • I am using .htaccess file to protect directories.But when the URL is typed the authentication prompt is not appearing. Cant we secure URL usinh .htaccess file?

     

    Hi,
    Please confirm that you follwed the correct steps to implement the "htaccess". For more info. check out the below techarticle which helps you.
    http://access1.sun.com/technotes/01157. html
    Regards,
    Dakshin.
    Developer Technical Support
    Sun Microsystems
    http://www.sun.com/developers/support.

  • Mod Rewrite & .htaccess File on a Mac (Leopard)

    I just copied all my websites over from my PC to my Mac and
    discovered
    that my .htaccess files (originally created in Notepad)
    vanished...or
    have simply become invisible. So what program do most people
    use to
    create .htaccess files on a Mac? Do I need to track down my
    Notepad
    version and delete it, or do they actually disappear on a
    Mac?
    Also, I've read that mod rewrite doesn't work a Mac unless
    you enable
    it. Actually, I assume that isn't true for Leopard, as I
    checked several
    pages on my CMS, and they seemed to be working.
    Still, I'm wondering what other surprises might be in store
    for me. Can
    anyone else who has migrated their websites from a PC to a
    Mac tell me
    what obstacles you ran into?
    I recently upgraded to Leopard and MAMP Pro and just
    installed Adobe
    Creative Suite, Web Premium.
    Thanks.

    Thanks.
    pauljmartinez_sf wrote:
    > The .htaccess file is just a plain text file so any
    decent text editor can
    > create and modify the files.
    >
    > There should be no cross platform issues using a
    .htaccess file since it is
    > used by the application and not the OS. .htaccess files
    are for Apache, so if
    > you're running a local version of Apache you should be
    all set provided Apache
    > is configured to allow .htaccess files.
    >
    > Mod-rewrite is also used by Apache and not the OS so no
    problems here being on
    > a Mac. You just need to make sure that mod_rewrite is
    anabled. You might be
    > able to do this from MAMP, otherwise you'll need to make
    the change in the
    > httpd.conf file for Apache and then restart Apache.
    >

  • How to publish to an FTB server in iWeb 2 using the File ➙ Publish to Folder option??

    I was just given the following advice regarding publishing to an FTP other than MobileMe. 
    Web 08 does not have that feature (drop down menu to publish from "site" icon).  You will need to upgrade to iWeb 3 in iLife 11 in order to get that feature.  You can get iLife 11 at the online Apple Store while supplies last since iWeb (and iDVD) have been discontinued by Apple
    To pubish to an FTB server in iWeb 2 use the File ➙ Publish to Folder menu option and then use a 3rd party FTP client like Cyberduck to upload the site files.
    Follon-on question, can anyone provide more details on how to do exactly what was suggested?  I toyed with it and can only get it to publish to a folder on my desktop, but not to an external FTP.  (I have already purchased a web-host package, just need to publish to it!)

    Okay.  When you publish your site from iWeb to a local folder what you will get is one site folder - this site folder will have the same name as you gave your site in iWeb and one separate index.html file.
    Your site folder contains an index.html file as well as the separate index.html file.  You NEED both.
    What you need to do is firstly using Cyberduck or whatever, upload your site folder to your host into whatever folder you need to upload to on the server - could be 'public_html', 'htdocs' or whatever - this is your root folder.
    You then need to upload your separate index.html file to your server too, but this index file needs to sit outside your site folder because it needs to point in towards the index.html file that is in your site folder - this is the first page of your site.
    You don't delete or duplicate any index files - iWeb produces the two index files that you need when you publish to a local folder - one index file in the site folder itself and one separate index file that sits outside the site folder and points into the first page of your site. 
    Also, remember to call the first page of your site something like Home or Welcome, but DO NOT name it index.
    By the looks of things here you have not uploaded your index files correctly.
    What I would suggest that you do is start over - so open Cyberduck and connect to your server and go and delete your site folder and your other index file if it is still there.
    Go back to iWeb and publish to a local folder again and notice that you have both your site folder and separate index.html file.
    Now go and open Cyberduck again and connect to your server and note where you need to upload your files to.
    Now go and upload your Site Folder to your server and once this has finished go back and upload your separate index.html file, but this needs to sit outside your site folder.  If you do this, then your site should display okay - as long as your other index file is pointing into to the first page of your site it should display correctly.

  • Can't delete a file or folde after using admin. password.

    Can't delete a file or folder after using admin. password.

    Solving Trash Problems...
    http://thexlab.com/faqs/trash.html

  • Its urgent  how to use calss file of jar located in lib folder

    how to use calss file of jar located in lib folder.
    i want to use RowSetDynaClass class which is in beanutil jar file which is in my lib folder .if i use that class in my jsp following error is coming.
    Class RowSetDynaClass not found.
    RowSetDynaClass resultSet = new RowSetDynaClass(rs, false);
    how to access class in jar file.
    please help

    You have to either refer to the class in its fully quallified name, or import it into the JSP:
    <%
      some.full.packagename.RowSetDynaClass resultSet = new some.full.packagename.RowSetDynaClass(rs,false);
      ...-or-
    <%@ page import="some.full.packagename.RowSetDynaClass" %>
    <%
      RowSetDynaClass resultSet = new RowSetDynaClass(rs, false);
      ...As long as the class has public visibility and you have re-started the server/servlet context since you added the JAR.

  • During restore of my backup on iphone 5s i saw my photos and videos get doubled on ios 8.0 and moreover if i use to go at my computer and then open my iphone and in folder i see some files name local disk and my photos please help my memory doubles.

    during restore of my backup on iphone 5s i saw my photos and videos get doubled on ios 8.0 and moreover
    if i use to go at my computer and then open my iphone and in folder i see some files name local disk and my photos
    please help my memory doubles.

    I'm not sure, but I know it's not recommended to upgrade to iOS 8 on anything older than an iPhone 5. I only lost my music playlists and music that was on my phone, but that music is also on my iTunes, not the playlists though, and I don't want to go through ALL my iTunes library to fix it either... But it seems I don't have a choice right now.
    Whatever you do, do NOT upgrade to iCloud Drive, keep iCloud till OS X Yosemite comes out, if your computer is a Mac. I also just noticed that all my documents on my phone are gone from Pages, BUT if I go on the iCloud website they are still there. Hopefully it will all work itself out when I can update my macbook pro to OS X Yosemite.
    If you backed up your phone and all your purchases off your iPhone prior to trying to upgrade you should be fine... But I'm not even remotely sure.

  • I have one folder with several projects all of which Aperure can not find the original.  I do not use referenced files.  I can't make any adjustments like cropping etc. What can I do to print any of these photos?

    I have one folder with several projects all of which Aperure can not find the original.  I do not use referenced files.  I can't make any adjustments like cropping etc. What can I do to adjust or print any of these photos?  IO have no ther projects with this problem.  My Aperture Library is automatically saved to two external drives.
    Dick Koos

    I have one folder with several projects all of which Aperure can not find the original.
    Have you checked inside your Aperture library, if the original files are still there?
    Try to find out, when the images in those projects have been originally imported, then open the Aperture library by ctrl-clicking it and using the command "Show package contents" from the pop-up menu. In the window that will open, select the folder "Masters" and browse the contents. You need to find the subfolder with the year you imported the images, then the folders with the month and the day.
    Are your original files still there?
    If yes, copy them to a folder on your desktop for safe-keeping, and then try, if repairing the permissions and the other Furst Aid tools will help Aperture to connect to these missing files again - see this link:  Repairing and Rebuilding Your Aperture Library: Aperture 3 User Manual
    If the First Aid Tools don't help, then check, if Aperture has moved the missing images to a "recovered folder". If not, reimport the images, you saved to your Desktop and use the Lift&Stamp tool to transfer any adjustment and captions to your reimported images.

  • Export Public Folder contacts to CSV File using Exchange management Shell

    Hi All
    Is there a command i can run in the exchange management shell to export all public folder contacts (which are in many sub folders) to a CSV file?
    Any help on this appreciated.
    Ben Weinberg
    Prime-Networks
    www.prime-networks.co.uk
    Please post the resolution to your issue so that everyone can benefit
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

    Hello Ben,
    Per my knowledge, you cannot use Exchange Management Shell to export the contacts in public folder to csv file.
    If you want to export contacts in public folder to a csv file, you can follow this way to do that:
    Open Outlook and create a Temp Contact Folder
    Move all the contacts to the Temp Contact Folder
    Use Outlook export contacts to csv file .
    Thanks,
    Evan Liu
    TechNet Subscriber Support
    in forum
    If you have any feedback on our support, please contact
    [email protected]  

  • When I use FTPFire the .htaccess file uploads as hidden. How do I unhide it once it is uploaded?

    My .htaccess file shows live on my c drive... When I upload it to my web host, it loads as hidden...
    How can I unhide it once it is uploaded?

    That is the purpose of that file. On Linux a file that start with a dot is a hidden file and there is no need to see that file anyway because it is meant for controlling the server behavior. I assume that FireFTP has a setting to show hidden files that you need to enable if you do not see the file.

  • OT: .htaccess files on a Mac

    Can anyone tell me what steps you followed to get .htaccess
    files with
    mod-rewrite rules to work on a Mac? I'm using the MAMP
    package, but I
    decided to stick with Apple's default Apache installation,
    since my
    virtual hosts work with it but not with MAMP's Apache
    version.
    One reference directed me to uncomment the following lines in
    httpd.conf...
    LoadModule rewrite_module modules/mod_rewrite.so
    AddModule mod_rewrite.c
    AccessFilename .htaccess
    ...and change "AllowOverride None" to "AllowOverride All" in
    both the
    httpd.conf and /private/etc/httpd/users/MyName.conf files.
    I did all of that, with two exceptions. I never exactly found
    the first
    line; the closest thing to it is this, which I left
    uncommented:
    LoadModule rewrite_module libexec/httpd/mod_rewrite.so
    Also, I can't change "AllowOverride None" to "AllowOverride
    All" in
    /private/etc/httpd/users/MyName.conf because it kills my
    virtual hosts.
    Thanks for any tips.
    www.geobop.org - Family Websites
    www.invisible-republic.org - Adult political websites (Mature
    adults only)

    What is your reason to change these Hidden System files and folder to Non Hidden. IMHO it is a very foolish thing to do. Using ther T Command you were given displays all of them and if for some reason that command doesn't then use this one.
    defaults write com.apple.finder AppleShowAllFiles -bool true (Replace true with false to turn off
    killall Finder to implement either)
    So with them displayed changing the hidden attribute may only cause you troubles.
    jbalawi wrote:
    Thnx Wjosten.. That makes me able to view them.. But they are still transparent compared to other visible files.. So is there any way where we can change their preferences or settings to make the transparent files look like the normal visible files ?

  • Creating .htaccess file

    Hi
    I'm trying to get rid of all the rogue characters on my site, which are apparent once published, but not when I publish to a local folder. I understand from previous topics, that I need to set up a .htaccess file, with something like this in it: AddCharset UTF-8 .html, so that browsers read the data correctly with Unicode (UTF-8).
    There is no .htaccess file in my folder on the FTP site, so I need to create one. Using Cyberduck, I can create the file fine, but then I need to put the data in the file, that's when I run into problems. Downloading the file, I can edit it in text edit, but then if I try and save a file as .htaccess it becomes invisible and I can't upload it to the server.
    Many thanks,
    Ant
    G5 2GHz dual, PowerBook G4   Mac OS X (10.2.x)  

    yes I've seen that link and I've checked the ftp settings. They're all as they're supposed to be. (i.e. charter encoding - UTF 8 and Default Transfer Mode - Binery). These are the characters I'm getting:
    Final Cut Pro HD. Â
    Livetype. Â
    Motion. Â
    Soundtrack Pro.
    Â
    With large digital storage facilities, we can work on-line right from the word go. Â
    Â
    Weâ€
    I know that if, in Safari, I go View>text encoding>Unicode (UTF-8) that solves it. So I'm trying to get all viewers of the site to be able to see Unicode. I've read the previous posts and they directed me towards the .htaccess file - unfortunately that's the bit I can't crack.
    Sorry - not really up on web design - a real novice. Have to say thought iWeb does make it easy to get stuff up quickly!
    G5 2GHz dual, PowerBook G4   Mac OS X (10.2.x)  
    G5 2GHz dual, PowerBook G4   Mac OS X (10.2.x)  

  • [DW CS4] How to search inside the .htaccess files?

    Hi,
    In Dreamweaver CS4, when I open an .htaccess file, and search for text "Inside Current Document", Dreamweaver finds and replaces them, no problem.
    But when I apply same search to a folder or whole site, Dreamweaver cannot find anything, even the text in already opened document.
    .htaccess files are neither hidden nor read-only.
    Any way to get around this?
    I have to find-replace some texts in couple of hundreds .htaccess files site-wide.
    Thanks.

    I think ( could be wrong), that .htaccess is not a recognised DW file extension  so it dosn't know to do a search for those files.
    I do believe that you can set up DW to recognise different file extensions via the preferences panel.
    Actually looking at my own preferences, htaccess is one of the files in the list- so it does recognise it  (because I know I didn't add that - unless it was added when I installed WAMP).
    See if you have the same.  If not, then I'm not sure why it's not finding your 'search and replace' text.
    The only other suggestion would be to use a good text editor with the ability to do 'search and replace'.  (sorry  :-)

Maybe you are looking for