Redirec to another directory

Hi,
I need to redirect all incoming traffic to my root folder
(e.g., my regular
URL), to another folder within the root directory. That is,
my root folder
will look like -
ROOT
- site
- contact/
- about/
- index.php
I need all traffic when a user types in -
http://www.avenuedesigners.com
to go to -
http://www.avenuedesigners.com/site/
And the same will go for any directory inside the site
folder. So, if a user
types -
http://www.avenuedesigners.com/contact/
they will go to -
http://www.avenuedesigners.com/site/contact/
An example of this can be found on accessites.org. I'm
assuming I'll use an
.htaccess file, but I haven't found anything through
searching on Google
that will achieve the above.
Thanks,
Shane H
[email protected]
http://www.avenuedesigners.com
=============================================
Back for 2007, close-up magic:
http://deceptivemagic.com
Web dev articles, photography, and more:
http://sourtea.com
=============================================
Proud GAWDS member
http://www.gawds.org/showmember.php?memberid=1495
Delivering accessible websites to all ...
=============================================

> avenuedesigners.com/index.php
Don't. Make the link like this -
<a href="/">Home</a>
> And that will just go back to the root and display -
Yes - either way would work.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"Shane H" <[email protected]> wrote in
message
news:[email protected]...
> Murray,
>
> Yes, you're correct. That's how the structure is set up
currently. I guess
> I don't want this to show up in the url when I link back
to the homepage
> from the contact page -
>
> avenuedesigners.com/index.php
>
> Though, I suppose I could just do a directory change
back to the root
> directory? Like -
>
> <a href="../">Home</a>
>
> And that will just go back to the root and display -
>
> avenuedesigners.com
>
> I think I'll stick with that, though I'd be interested
to know what the
> solution *would* be.
>
> Thanks!
>
> --
> Shane H
> [email protected]
>
http://www.avenuedesigners.com
>
> =============================================
> Back for 2007, close-up magic:
>
http://deceptivemagic.com
>
> Web dev articles, photography, and more:
>
http://sourtea.com
> =============================================
> Proud GAWDS member
>
http://www.gawds.org/showmember.php?memberid=1495
>
> Delivering accessible websites to all ...
> =============================================
>
>
> "Murray *ACE*" <[email protected]>
wrote in message
> news:[email protected]...
>>I don't understand why you need to do this, Shane.
Kim's suggestion will
>>do exactly what you want.
>>
>> --
>> Murray --- ICQ 71997575
>> Adobe Community Expert
>> (If you *MUST* email me, don't LAUGH when you do
so!)
>> ==================
>>
http://www.dreamweavermx-templates.com
- Template Triage!
>>
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
>>
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
>>
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
>> ==================
>>
>>
>> "Shane H" <[email protected]>
wrote in message
>> news:[email protected]...
>>> Kim,
>>>
>>> I'll be using the url -
>>>
>>> avenuedesigners.com/site/
>>>
>>> The purpose is to omit all extensions
(index.php) in the url, that's
>>> all.
>>>
>>> I guess this must be harder than I thought!
>>>
>>> --
>>> Shane H
>>> [email protected]
>>>
http://www.avenuedesigners.com
>>>
>>> =============================================
>>> Back for 2007, close-up magic:
>>>
http://deceptivemagic.com
>>>
>>> Web dev articles, photography, and more:
>>>
http://sourtea.com
>>> =============================================
>>> Proud GAWDS member
>>>
http://www.gawds.org/showmember.php?memberid=1495
>>>
>>> Delivering accessible websites to all ...
>>> =============================================
>>>
>>>
>>> "Kim" <[email protected]> wrote in message
>>> news:[email protected]...
>>>> Just don't put your index (homepage) in a
folder...
>>>>
>>>> [root]index.php
>>>>
>>>> [contact]index.php
>>>>
>>>> [about]index.php
>>>>
>>>> What should the benefit of having the
homepage in a folder called site
>>>> be? avenuedesigners.con/index.php or
avenuedesigners.com/site/index.php
>>>>
>>>> Shane H skrev:
>>>>> Alan,
>>>>>
>>>>> Essentially what I need is for any
traffic going to my domain, to be
>>>>> redirected to the subfolder "site"
sitting in the root. I want it this
>>>>> way to eliminate file extensions in the
URL. So instead of calling the
>>>>> homepage in my relative links like -
>>>>>
>>>>> index.php
>>>>>
>>>>> I can call it (for example from the
contact page) -
>>>>>
>>>>> ../site/
>>>>>
>>>>> Where index.php is sitting inside the
/site/ folder. My structure will
>>>>> look like -
>>>>>
>>>>> /root/
>>>>> /site/
>>>>> /index.php
>>>>> /contact/
>>>>> /index.php
>>>>> /about/
>>>>> /index.php
>>>>>
>>>>> So again, any traffic where the user
types in -
>>>>>
>>>>> avenuedesigners.com
>>>>>
>>>>> I'd like to go to the directory -
>>>>>
>>>>> avenuedesigners.com/site/
>>>>>
>>>>> And so on and so forth for any pages.
Like if they attempt to directly
>>>>> access the contact folder like so -
>>>>>
>>>>> avenuedesigners.com/contact/
>>>>>
>>>>> It will redirect them automatically to -
>>>>>
>>>>> avenuedesigners.com/site/contact/
>>>>>
>>>>> Do you have the .htaccess code, or a
tutorial which does to accomplish
>>>>> this? I hope I'm making sense.
>>>>>
>>>>> Thanks!
>>>>>
>>>>
>>>> --
>>>> Kim
>>>> ---------------------------
>>>>
http://www.geekministry.com
>>>
>>>
>>
>>
>
>

Similar Messages

  • Copy file from directory to another directory

    I need to copy a file from a directory to another directory, but that file is longer than 2M.
    I put the data into a array of bytes and then i passed to a destination directory.
    Now i'm using a BufferedOutputStream but, as i have a file whith 2M, and this dont work.
    How can i resolve this problem.
    Thanks, Luis

    I use This, and it works with all kinds of files. I use it for backups with thousands of files and subdirectories.
    you can use this like "copyFiles("D:\\Source", "D:\\Destination")
    The two directories in the parameter list must exist. Subdirectories will be generated from the method.
    I hope this will help you.
    private void copyFiles(String fromPath, String toPath)
         // copies all files and it�s subdirectories from fromPath to toPath
         // fromPath and toPath must exist
              if (fromPath != null)
                   File dir = new File(fromPath);
                   if (dir.exists() && dir.isDirectory())
                        File [] fileList = dir.listFiles();
                        int count = fileList.length;
                        int i = 0;
                        while (i < count)
                             File f = fileList;
                             i++;
                             if (f.isFile())
                                  String toFile = toPath + File.separator + f.getName();
                                  copyFile(f.getPath(), toFile);
                             else
                                  if (f.isDirectory())
                                       File newPath = new File(toPath + File.separator + f.getName());
                                       newPath.mkdirs();
                                       copyFiles(f.getPath(), newPath.getPath());
                        }// while (i < count
                   }// if (dir.exists() && dir.isDirectory())
              }// if (fromPath != null)
         }// copyFiles(String fromPath, String toPath)
    private void copyFile(String src, String dest)
    // Copies a single File with date and time attributes
              long fileTime;
              try
                   FileChannel in = new FileInputStream(src).getChannel();
                   FileChannel out = new FileOutputStream(dest).getChannel();
                   File inInfo = new File(src);
                   fileTime = inInfo.lastModified();
                   in.transferTo(0, in.size(), out);
                   in.close();
                   out.close();
                   File outInfo = new File(dest);
                   outInfo.setLastModified(fileTime);
              } catch (IOException ioe)
                   System.out.println("An error occured: " + ioe.getMessage());

  • Retreiving the file names from directory inside another directory from application server

    Hi,
    I had a problem in retreiving the file names from a directory inside another directory.
    I tried using the FM's  SUBST_GET_FILE_LIST, RZL_READ_DIR_LOCAL and EPS_GET_DIRECTORY_LISTING
    But here I am getting only one directory details.
    Actually my file is located a directory inside one more directory and one more directory and inside the files are located.
    i.e total 3 directories inside the 3rd one my files are there.
    I need to read the latest file name in the directory.
    So that i can do some manipulation after getting the file name.
    Is there option like OPEN DATASET , READ DATASET and CLOSE DATASET?
    Can anyone please let me know How can i acheive this one.
    Regards
    Ram

    Hi Ram,
        Following thread can be helpful for you, were it shows in the tables structure rsfillst a field RSFILLST-TYPE whether its a directory or file..........
    http://scn.sap.com/thread/865272
    thanks and regards,
    narayan

  • How to  move a page file to another directory ?

    Hi,
    What I did to try to move a page to another directory is:
    1. copy the page file to another directory /public_html/mydirectory.
    2. modify the nevigation-rule in the faces-config.xml file so that the nevigation-rule
    point to the file in the new directory.
    But when run the page, there is an FacesException: Cannt instantiate backing_bean.
    How to move a page file to another directory?
    Thanks
    Stephen

    besides moving the file to the new directory, i'd advise you to find the name of your page in every file of your application (ultraedit does this very well) and append the directory wherever it appears otherwise you'd probably miss a reference and have a problem like you have.

  • How to duplicate a file in a directory to another directory?

    I am a student just has just learn some basic Java programming...May i know how to duplicate a file in a directory to another directory?
    How to start in doing this?
    Thank You

    I was suggesting to use java to send commands to the system shell so to speak....
    I don't know of a way to do this... under the File class you can delete files, but there is no provision to copy Files so to speak....
    one way would to be to open the file you want to copy with a file reader, and then write it all out to your new file.
    see http://java.sun.com/j2se/1.3/docs/api/java/io/FileReader.html for information of FileReaders

  • Missing fonts when saving in another directory

    I made a page (the index), put a web font, the css and font is saved in a directory and is ok, the page looks perfect in browser, now i save the same page with another name in another directory and dreamweaver ask me "Do you want to update the links?" I click "yes" and now the new saved page dont display the fonts, if i save in the same directory that the original yes but if saved in a subfolder dont display fonts. Why, the css has the link and route to the fonts, what am i doing wrong???!!!

    Hi
    Check the css file that is created for the web fonts, as this may be using a relative link to the web font files.
    Without seeing the code that is only a guess, can you upload the page, (and all files) to a web server for us to check?
    PZ

  • Can the FrontendCallback.seq be located in another directory?

    Hi,
    The normal location for the (customized)FrontendCallback.seq is \Components\User\Callbacks\FrontEnd. If you want to make a modification and place it in another directory, how you configure TestStand to look at this modified FrontendCallback.seq (i.e. not the default user directory)?
    Thanks...Kevin

    Hello Kevin,
    Unfortunately you cannot change the location of the FrontEnd callback sequence. TestStand searches automatically for this sequence first in \Components\User\Callbacks\FrontEnd and if not found it searches at \Components\NI\Callbacks\FrontEnd.
    Regards,
    Roberto Piacentini
    Applications Engineer
    National Instruments
    www.ni.com/ask

  • I repet : I can't install Firefox in another directory that C. I am not allowed by Firefox 3.6.10 to write another directory than C\downloads or another but started with C:\.

    I repet : I am not allowed to write another directory than C:\\ when I direct Firefox fon installing.
    I want to post Firefox in G:\\, where I have enought space. In C:\\ I just have space for Windows .

    Please stick with your original thread. Locking this one as a duplicate.
    https://support.mozilla.com/en-US/questions/754307

  • Problems when I copy my VI to another directory

    Hello!
    I have problem when I copy my Main Vi to another directory. It is included in the program to have a template main that I duplicate. When I have copied my Vi to another directory direct under the template directory it has problems to find subvi´s that are included in the main VI. The subvi´s are included in the same folder as the template VI. Is it possible to set in the template main VI where to look for the subvi included, independent where I copy it?
    Please help!!
    BR
    Kristian

    Sure. There is a file path "constant" that will return the current VI's path. Use this, then strip off what you don't need with strip path and add in the new parts with build path.
    Hope that this helps,
    Bob
    Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
    DISTek Integration, Inc. - NI Alliance Member
    mailto:[email protected]

  • Can't play music since I moved it to another directory

    Is there a possibility to let Itunes search for all the right directories for all my music at once, or do I really have to search it manually for each song? Since I moved my music to another directory, Itunes isn't able to detect it anymore.

    No iTunes does not automatically search for missing tracks.
    The simplest way out of this is to start a new library, but this will loose all your counts rating and playlists.
    To do this, close iTunes and drag iTunes Library.itl and iTunes Library.xml to the desktop.
    Open iTunes and and empty library is created. Set the location of your iTunes Music folder if you need to (preferences>>Advanced tab) then add you new music folder with File>>Add folder to library.
    If you really care about your meta data there is another way which is more complicated and involves editing the xml file to correct the paths. I can explain how to do that if you want. It only works if you moved the entire iTunes Music folder intact so all the subfolders remain the same.
    PS there is another alternative, if you can put everything back how it was before you moved the music folder.
    Message was edited by: polydorus

  • Cannot load .dll files in another directory when double clicking on the .exe

    Hi all,
    I am currently using VS 2005. I have quite a few of .dll(s) that is currently residing in the same directory as the .exe
    I want to put the .dll(s) in another directory and have the application point it to that directory so that it can load the .dll(s) from there. 
    I know that I am able to set the Environment path to my desired directory in project properties->debugging. 
    However, i also know that this is only applicable for debug mode and executing the app by pressing "F5" or the "play" button.
    But when i double click on the app in the debug folder, it does not load the .dll(s) from the specified path. 
    How can I make the .dll(s) load from my specified path even when i double click on the .exe? in debug and release mode. 
    Cheers,
    nat

    Hi Nat,
    Thank you for your information.
    Your issue is out of support range of VS General Question forum which mainly discusses
    the usage of Visual Studio IDE such as WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
    and Visual Studio Editor.
    Because you want to load dlls from your application, it is more related to programming, I suggest opening a new thread about your issue in some development forums based on the type of your application. For example, if you are working with Windows Forms app,
    you can consult on Windows Forms Forum:http://social.msdn.microsoft.com/Forums/windows/en-US/home?category=windowsforms
    If you are working with WPF app, WPF forum is a proper forum:
    http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=wpf
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Redirect *.TMP files into another directory

    Hello,
    We have Forms 6i and also Forms 10g applications, and alll these run on a IBM AIX server.
    We noticed that our applications generated sometimes a lot of big or less big *.TMP files in the /tmp directory of our server.
    These files are usually automatically deleted when the application closes as normal. But, when a crash occurs, then *.TMP files remains for ever...
    We would like to monitor these problems, and see whether it's possible to redirect the *TMP files on the server into another directory on the same server.
    I suppose that there is some setup to make.. but I have no idea what to do.
    Thanks,
    Olivier

    Hello,
    Here is the content of a Metalink note:
    Subject:      Files Types .t and .temp and .tmp, are Saving Under /var/tmp
         Doc ID:      Note:145487.1      Type:      PROBLEM
         Last Revision Date:      28-JUL-2003      Status:      PUBLISHED
    * fact: HP 9000 Series HP-UX
    * fact: Oracle Application Object Library
    * symptom: /var/tmp directory is runnig out space
    * symptom: The user Applmgr is creating the file OFFAAAa(5 digit number).t under /var/tmp:
    * symptom: The user Oracle also is creating the file o(seven digit number). tmp under /var/tmp
    * symptom: The user Oracle also is creating the file l(seven digit number). temp under /var/tmp
    * symptom: Using the "browse" window in forms
    * symptom: Running forms creates a temp file /var/tmp that keeps getting filled up
    * change: NOTE ROLE --------- .t files - ASCII files - temporary files generated by reports Open up the .t files the first 5 characters indicate what report in Applications created the .t file. .tmp and .temp files - binary files - temporary files generated by forms Forms uses the operating system function call tmpnam() to generate file names that can be used safely for temporary files. tmpnam() depends on the setting of P_tmpdir defined in /usr/include/stdio.h (HP may have a different directory). The P_TMPDIR can only be changed from the OS side. After changing the P_TMPDIR all forms in applications must be recompiled. P_TMPDIR is equivalent to TMPDIR on some UNIX boxes. If the TMPDIR (or P_TMPDIR) is not set up then all the temporary files are created under /var/tmp directory.
    * cause: There is a lack of disc space for temporary files.
    fix:
    1. Redirect /var/tmp under a different/new disk which has more space
    OR
    Make a soft link from /var/tmp to a directory with sufficient space on the same
    disk.
    2. Set up a CRON job to clean up the files under /var/tmp frequently.
    UNIX system administrator and/or the operating sytem vendor, HP, has
    knowledge/information about this clean up script.
    3. Change P_TMPDIR or TMPDIR on the operating system if P_TMPDIR or TMPDIR is
    not set up correctly.
    4. Recompile all forms in apps with adadmin utility afterwards.
    5. Set up P_TMPDIR or TMPDIR (depending on the UNIX brand) if it is not yet set
    up.
    WORKAROUND:
    1. Ask the UNIX administrator and HP about spool file directory and user quota
    on the operating system HP.
    2. Change/Increase the value of &QUOT;
    3. Change the spool file directory to something other than /var/tmp.
    Francois

  • Did anyone have saplogon.ini on another directory than c:\windows and how t

    Hi
    Did anyone have saplogon.ini on another directory than c:\windows and how to change it?

    Hi Tina,
    you can also put it in
    C:\Program Files\SAP\FrontEnd\SAPgui
    Cheers,
    Stefan.

  • Add another directory

    We're looking to add another directory to our phones, mainly for our technicians cellular numbers. I was thinking editing the directories script to show yet another directory in addtion to Personal and Corporate.
    If that is not possible, then adding a phone service would be the 2nd choice. We're running CUCMBE 7.0, does anyone know an easy approach at accomplishing this or can lead me to the correct documentation? I've been searching for quite some time now with no luck. Any insight provided will be greatly appreciated. Thanks!

    I'd like to, but I suppose I won't ask why it cannot be hosted on the same server..
    How custom are we talking? This is an important topic that customers laugh at when told the system can't do a simple directory. I'm pretty self sufficient when it comes to html related items, not so much java. Is that the bulk of the programming?
    Also, if there is any documentation that can lead me in the right direction I would be very greatful.

  • How to call another directory java program?

    Hi All,
    For Example:
    My program is here in two directories.Let Think that directory names like A and B.
    Let Program names like Aprog(A directory) and Bprog(B directory).
    I want to call Aprog to Bprog method.
    How to call?
    Plz., help me ASAP.
    --Mohan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    My program is here in two directories.Let
    Think that directory names like A and B.
    It's more complicated than that. A java program consists of multiple .class files. In general you have one or more "trees" of directories of .class files, where the structure of the tree reflects the package structure. So a the class file for "org.dingbat.Thingy" is <basedir>/org/dingbat/Thingy.class where <basedir> is some directory on the class path.
    So referencing one class from another in different directories requires that the source provides the "fully qualified name" of the class (usually on an import) and making sure that, if it's in a different class file tree, both base directories are on the class path.

Maybe you are looking for

  • Dynamic addition of  JMenuItem in JMenu

    I am trying to create a menu for my project. For that i have added the main menus and for each menu there will be menu item. But the problem is i will get the list of menu items for each menu , only at the runtime of my project. i.e. i wabt to add pr

  • Load data from file error - it's ok now

    hi i'm trying to load data from .ctl file, previously created by smallworld, using enterprise manager and i am asked for host credentials (username and pswrd). i assume these host credentials are of operating system. anyway, i have tried to enter use

  • Is there an unsigned .xap of Adobe Reader?

    We want to distribute the app via our own MDM platform rather than via the Microsoft Store. I notice there are versions available for internal distribution on iOs and Android devices but we require one for Windows Phone 8. Thanks MH

  • No Response when installing OBIEE

    Hi all, I am trying to Install OBIEE 11 g in my Local machine . i have 13 GB Free space as of now and i have done the first 2 steps like .. 1. Successfully installed Oracle Database XE 2. Successfully installed RCU with the component Metadata service

  • Kodak 645 digital back

    Will the latest version of camera raw in photoshop cs2 open the raw files form the kodak back? I run cs2 on mac G 5 with the latest operating system. Geo Salmon