Htaccess redirect not passing folder names

Hello everyone.
Cant figure this out... purpose is to rewrite all urls without a {www.} to have a {www.} exactly as they are elsewise.
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.deafboyzaudio\.com$
RewriteRule ^(.*)$ http://www.deafboyzaudio.com/$1 [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteRule index\.php$ http://www.deafboyzaudio.com/%1 [R=301,L]
and it works fine except if i have something like
deafboyzaudio.com/videoz/upload.php
it redirects to
www.deafboyzaudio.com/upload.php.
how do i set it up so that it passes the folder name as well.  sometimes there are multiple.
My site also uses a lot of url rewrite rules and modules etc behind the scenes.
I want to solution that takes and duplicates the entire url and just adds a www. if it doesnt have it.
thank you very much!

ok i found a site that covers this...
http://www.inmotionhosting.com/support/website/redirects/setting-up-a-301-permanent-redire ct-via-htaccess
the tech says to use
RedirectMatch 301 (.*)\.asp$ http://www.example.com$1.php
which basically changes the .asp to .php
I modified it to change the non www to www, just guessing...
RedirectMatch 301 deafboyzaudio\.com(.*)$ http://www.deafboyzaudio.com$1
but NOPE, it still redirects to the same url just without the subfolder.
I think i am just doing ti wrong because when i try to use the code provided to change the document type (.php) as in the example it works, and it KEEPS the directory structure.
so i think im on the right track, just cant code it right...

Similar Messages

  • Passing folder name to iview

    Hi all,
    We're developing a new application using km to make documents available to end users. We have a repository set up with lots of folders. Under each folder, there's up to 12 sub folders. Each of these sub folders may have their own sub folders.
    We want to present a km search iview for each of the subfolders. We're wanting to use the tool area iview so that our search results will open up in a new window. We also want to use our own custom layout set. We know how to create a KM Search iview and reference it in the tool area search iview so that we can define our layout set, search option set, and what ever other customizations that we want to make.
    I'm wondering if there's a way to pass a folder name to a km search iview. What I'm trying to avoid is having to create a separate tool area search iview, km search iview, and search options set for each of the individual sub folders. If I have to create each of these separate, that means that I'm creating three portal objects for each sub folder: tool area search, km search, and search options set.
    Has anyone got a solution to this?
    Thanks!
    -Stephen Spalding
    Web Developer
    Graybar

    if I am doing something like this : for i in (execute immediate Lv_sql_query)
    I am getting an error which is :
    PLS-00103: Encountered the symbol "IMMEDIATE" when expecting one of the following:
    . ( ) , * @ % & | = - + < / > at in is mod remainder not
    range rem => .. <an exponent (**)> <> or != or ~= >=
    My code:
    create or replace procedure p_table_compare(fp_table_old in varchar2, fp_table_new in varchar2)
    as
    Lv_sql_query varchar2(2000);
    begin
         --dbms_output.put_line('Hello World');
         Lv_sql_query := 'select * from '||fp_table_old;
         for i in (execute immediate Lv_sql_query)
         loop
              dbms_output.put_line(i.employee_id);
         end loop;
    end;
    Please help.
    Regards
    Rahul

  • TS4002 not seeing folder names some email message content from Firefox log in to iCloud

    Lately when I access my iCloud account I'm not see the Folder names and some emails are showing no content from Firefox on my work PC, though when I view Mail from my iPhone the folders and the email message content is there. It doesn't happen all the time though it is become a more frequent occurrence. What gives?

    This is the result you get when you try to sign into the iCloud Control Panel on Windows with an Apple ID which hasn't been used to set up an iCloud account, since you cannot set up an account on Windows. Once an account is set up elsewhere you should be able to log in perfectly well.
    Forgive me for asking, but are you absolutely sure you are logging in with the right ID? Many people have separate IDs for iCloud and iTunes and it's easy to get them confused: so this is the first thing you should double-check.
    Have you recently purchased additional Storage? Someone who had found that he was unable to log in in Windows until he had gone to the preference pane on his Mac and confirmed that extra storage there - I've not idea why that should be the case.

  • .htaccess redirect not working

    I have created a .htaccess file with the following code.
    "RedirectMatch permanent ^/index.html$ http://www.caymanvacation.com/index.cfm"
    It is in the domains root folder with the files it is redirecting and it doesn't work.
    Any advice on how to det a redirect to work.
    Dual G5 Xserve   Mac OS X (10.3.9)  

    For a start, .htaccess files are disabled by default. You'll need to add/edit the <Directory> directive for the directory in question to AllowOverride FileInfo in order to use RedirectMatch.
    However, it isn't clear that you need to do this.
    If all you're trying to do is make 'index.cfm' the default document instead of /index.html, you can do this using the DirectoryIndex command. This tells apache the filename to use as the default document. Setting (or adding) index.cfm to this list will automatically serve that page if the user omits it.
    If you do still want to use redirects (maybe because you have existing links/bookmarks to index.html) then you don't need to use RedirectMatch.
    Since RedirectMatch uses regular expression parsing to match the URI there is a certain overhead in using it. You can get the exact same result with less overhead using a regular Redirect:
    Redirect /index.html http://www.caymanvacation.com/index.cfm
    This lightweight version will have the exact same effect but with lower overhead since it doesn't use regular expression parsing, just simple string matching.

  • Spotlight not finding folder names

    I’m not sure when this happened - perhaps when I changed my home folder to a FileVault image. Now Spotlight will not find any folders. I have, no doubt, selected folders in the pref pane. I tried deleting the Spotlight perf file. This did cause me to have to reconfigure the preferences - I selected folders - still didn’t find any! I have reindexed Spotlight by dragging the drive in and out - no change. I ran all the Cocktail cache deletions, etc. - no effect. I give up!
    Has anyone heard of this?

    Back up all data before proceeding.
    Triple-click anywhere in the line below on this page to select it:
    /.Spotlight-V100
    Right-click or control-click the highlighted line and select
              Services ▹ Open
    from the contextual menu. A folder should open with a subfolder selected. Move the subfolder to the Trash. You may be prompted for your administrator login password. Restart the computer. If you try to search now from the magnifying-glass icon in the top right corner of the display, there should be an indication that indexing is in progress.
    You can't see the folder in the Trash because it's invisible. The next time you empty the Trash, it should be deleted.

  • FTP does not publish correctly to directory/path of \ (i.e. no folder name)

    I have never been able to get the iWeb FTP publish to work correctly, so I will try once again.
    I use www.easycgi.com for hosing, the the directory/path for www.mydomain.com is / (i.e. there is not a folder name). I can verify this via Cyberduck and have confirmed it with their tect support (i.e. no folder name, just \).
    If you use / for the directory/pathin in iWeb, iWeb test connection button works fine (meaning it finds that folder) and publish works fine, but the pages are published to a newly created FTP folder called www.mydomian.com on the FTP server, so to access the pages the URL in a browser is www.mydomain.com/www.mydomain.com/index...the 2nd www.mydomain.com being the folder.
    If you enter a directory/path of \, iweb seems to make the folder the site name (also entered in iWeb).
    As a work around, you can publish using iWeb, then in cyberduck cut and paste everything from FTP folder www.mydomain.com to FTP folder \ and it works fine...just a hassle.
    Any ideas?
    thanks
    bob

    The extra folder is given the name which you gave your site inside iWeb. Instead of using your url for your site name, call it Site or S or whatever.
    Complete iWeb sites always have the sitefolder name in the url that appears in the browser address bar. If you want to eliminate that, you can publish to your local drive and use another ftp app to upload just the contents of the sitename folder. Or you can try forwarding www.myname.com to www.myname.com/sitename. Or you can try naming your site the same as the default folder on your server (e.g. public_html, if that is what your server uses). Or try putting just http:// in the url field.
    If you eliminate the sitename folder, any RSS Subscribe buttons normally will not function. Some users have gotten RSS to work by putting just http:// in the url field.

  • Windows Server 2008 R2 Windows 7 folder redirection not working

    Hi, 
    I've got a Windows Server 2008 R2 environment and I'm trying to get folder redirection working on Windows 7 clients. I've configured the group policy on the DC and it's suppose to redirect the user desktop to a folder sitting on another server. 
    What I've discovered is that any files in that folder aren't being copied down and they aren't visible to the user. I can connect to the folder via its UNC path and when I run a gpresult the GPO is showing that it's applying. 
    Am I missing something? Shouldn't the files be copied down since I've redirected the desktop? Here are the settings I've used: 
    Share Permissions
    Local Administrators: Owner
    Domain Admins: Read/write
    Everyone: Read
    NTFS
    Local Administrators: Full Control on This Folder, subfolders and files. 
    SYSTEM: Same as above. 
    Domain admin: Same as above. 
    Everyone: Traverse folder, execute file, list folder, read data, read attributes and read extended attributes to This Folder only. 
    GPO Settings: 
    Under User Configuration -> Policies -> Windows Settings -> Folder Redirection -> Desktop
    Setting is Basic - Redirect everyone's folder to the same location. 
    Target folder location - Redirect to the following location
    Root path: FQDN\Shared folder name
    GPO is linked to the OU I want to test with and there is a user account in it. 
    Any tips would be appreciated. 
    Thanks. 

    A.
    Share Permissions
    Local Administrators: Owner
    Domain Admins: Read/write
    Everyone: Read
    Perhaps here is too strong limit.
    B. Try to use audit.
    Rgds
    Milos

  • Creating a Folder Within Form or Document Library & Display the name not in the name column.

    I have created a form library that will used to create folders within that. The folder creation is done using an InfoPath Form that has been uploaded to the Form Library. When the new folder was created the name will be displayed at the Name column within
    the Form Library. I want to change that to another column like documents or suchlike.
    Can it be done using InfoPath 2010 VSTA C# or not? If their are other options available please could you try to inform me!
    Thank You,
    Chiranthaka

    Hi,     
    If you want to show the name of folder in another column, a workaround is that you can create an extra column, then create a SharePoint Designer workflow to set the value of
    this column with the name of folder.
    Here is a link about Create Workflow using SharePoint Designer and set field value for your reference:
    http://www.codeproject.com/Tips/419037/Create-Workflow-using-SharePoint-Designer
    I have seen a similar post from you in the link below:
    http://social.technet.microsoft.com/Forums/en-US/c3ff3f17-dbe2-40f9-86c5-ff7d4b663f09/creating-a-folder-within-form-or-document-library-display-the-name-not-in-the-name-column?forum=sharepointcustomizationprevious
    It's recommended that you post a single question in a single thread which will make it easier to be discussed by others.
    Best regards
    Patrick Liang
    TechNet Community Support

  • Passing TABLE NAME as parameter is possible or not?

    I want develop a small/simple report like this
    TABLE NAME :
    WHERE :
    ORDER BY :
    QUERY ROWS
    In the above model i want to pass all the three (TABLE NAME,WHERE and ORDER BY) as a parameter.
    My doubt, is that possible to pass TABLE NAME as a parameter? If so!
    When i enter any TABLE NAME it has to fetch me out the records of that table (Based on WHERE condition and ORDER BY).
    Is that possible to do?
    Need some help!
    Edited by: Muthukumar Seshadri on Aug 10, 2012 6:19 PM

    Yes, it is possible with lexical parameters. Look in the help for examples:
    SELECT Clause
    SELECT &P_ENAME NAME, &P_EMPNO ENO, &P_JOB ROLE  FROM EMP
    P_ENAME, P_EMPNO, and P_JOB can be used to change the columns selected at runtime.  For example, you could enter DEPTNO as the value for P_EMPNO on the Runtime Parameter Form. 
    Note that in this case, you should use aliases for your columns.  Otherwise, if you change the columns selected at runtime, the column names in the SELECT list will not match the Report Builder columns and the report will not run.
    FROM Clause
    SELECT ORDID, TOTAL FROM &ATABLE
    ATABLE can be used to change the table from which columns are selected at runtime.  For example, you could enter ORD for ATABLE at runtime. 
    If you dynamically change the table name in this way, you may also want to use lexical references for the SELECT clause (look at the previous example) in case the column names differ between tables.
    WHERE Clause
    SELECT ORDID, TOTAL FROM ORD WHERE &CUST
    ORDER BY Clause
    SELECT ORDID, SHIPDATE, ORDERDATE, TOTAL  FROM ORD ORDER BY &SORT You have to be really careful with this approach. Dynamic SQL may cause serious performance problems.
    Edited by: InoL on Aug 10, 2012 10:06 AM

  • Unable to open Sharepoint site with Designer "Folder name is not valid"

    Hi all,
    I'm using SharePoint 2013 with SharePoint Designer 2013, but currently I'm facing a weird behaviour.
    I can open my preproduction SharePoint portal with SharePoint Designer 2013, but when I'm trying to open my production environment, I'm receiving the error "The folder name is not valid". Even it doesn't ask for credentials.
    Anyone knows what is happening?

    There are few other options people used to solve this issue. refer to the following posts if you haven't so far. hope it helps.
    http://hightechdave.com/sharepoint-designer-the-folder-name-is-not-valid-error/
    http://mesiag.blogspot.com/2011/10/sharepoint-designer-2010-folder-name-is.html
    http://community.office365.com/en-us/f/154/t/11825.aspx
    Cheers,

  • Finder not refreshing file or folder names, in NFS mounts.

    We are experiencing the an issues with NFS mounts, in both 10.7 and 10.8 machines.  After mounting NFS shares, the file/folder names do not update in other MAC finder windows until it is unmounted and remounted on the MACs.  This DOES NOT happen in our 10.6.8 and earlier machines.

    Cross posted
    http://forum.java.sun.com/thread.jspa?threadID=768693&tstart=0

  • User share folder not passing permissions to subfolders

    I set up sharing properly best as I can tell between two user accounts on my iMac, however, sharing permissions do not pass to the subfolders I put into the user share folder. Do I have to assign permissions to every folder individually? This can't be right??

    OK, I found the the small gear icon at the bottom of the "Get Info" window. Unlock the Get Info window, click the gear icon and select "apply to enclosed items". Permissions work OK now. This little setting was not easy to find.

  • BDC session created as i excute I have not passed any file name

    Hello Guru's
            I  have created one BDC
    PARAMETERS : readfile LIKE rlgrap-filename DEFAULT
                 'c:\textfile.txt' LOWER CASE.
    on execute I'm passing a new file name & my BDC works fine.
    But in case i execute & do not pass any file name & cancel the same a BDC session is generated with zero values.
    How to restrict the same. Please guide.

    hi,
    make ur field obligatory..
    PARAMETERS : readfile LIKE rlgrap-filename DEFAULT
    'c:\textfile.txt' LOWER CASE OBLIGATORY.
    and make another check.
    after uploading the file to internal table, check whether it contains any value...
       IF <tab>[] IS INITIAL.
          MESSAGE 'No Data in FILE.' type 'E'.
          LEAVE LIST-PROCESSING.
       ENDIF.
    and if a blank session is generated, go to SM35 and delete that session...
    Edited by: Sukriti Saha on Oct 23, 2008 10:39 AM
    Edited by: Sukriti Saha on Oct 23, 2008 10:41 AM

  • Keyboard not working (sometimes) when attempting to change file/folder name

    Every now and then, my keyboard doesn't seem to work when I'm trying to change the name of file or folder. I can't isolate any particular context when this occurs. When it happens, the keyboard works fine in other applications.
    Any ideas on why this happens?

    Here's a description of what happens. Let's say I want to change the name of a file or folder on my desktop. I click the item, then the name, and the name becomes editable. Every now and then, even though the file/folder name is in the edit mode (highlighted or cursor inserted), when I try to type nothing happens (the name doesn't change). When this occurs, the keyboard functions properly in all other ways.
    Again, I can't isolate the circumstances leading up to this. Any ideas?

  • I need to see the contents of a folder, not only the name of it as LIST.vi does, but i need to access its contents also. Is there a vi that can go through a folder and all its contents?

    na

    Where do you want to "see" the folder contents? On your front panel? In a dialog box? Just within your code?
    There are a couple of functions on the File I/O >> Advanced FIle Functions palette. Look at File Dialog, which pops up a Windows Explorer type window through which you can navigate and view folder contents, or List Directory, which create two string arrays: one for file names and another for folder names. You can use List Directory recusively in a loop if you want to drill down through a directory structure.

Maybe you are looking for

  • File type on external Seagate HDD

    I have connected a 2TB Seagate external HDD to my Mac Mini. Running the latest version of Mavericks. I have made 3 partitions. 1TB for TimeMachine backup. 600GB for Videos and 400GB for photos. I formatted the drive in Mac OS Extended (Journaled) bef

  • N85_WLAN_connection_issue .. plz help

    Hi there.. I have a Speed Touch(585-vi) witch supports wireless connection. But i can not use my N85 for the internet through WLAN!! WLAN wizard recognize the access point thin connected. and when i use the browser i get this annoying message !!? WEP

  • Query regarding supplier bids

    Hi,    Can anyone confirm the following ?? There is no provision in SRM for suppliers to add items in addition to those proposed in the Bid invitation. BR, Rajeshree

  • After Updating to version 11.1.4.62 cannot sync new music onto IPod

    After updating any new songs I add will not sync onto my IPod. The songs are physically there on Itunes but will not show up on the IPod itself.

  • Return code (SY-SUBRC) for the EXCEPTION will not be processed

    Hi, when I was doing the EPC check i have approached this messgae. Return code (SY-SUBRC) for the EXCEPTION will not be processed after CALL FUNCTION 'CU_READ_RGDIR' (You can turn off this check by setting all EXCEPTIONS to 0) (The message can be hid