Problem in .htaccess redirection setup

Hello Friends,
I am not sure weather this is appropriate place to raise this question or not.
I have a website www.esparkinfo.com, It is in core PHP, I want to hide php extension and display html extension to my visitors and I did it by changing in .htaccess file.
Below is the .htaccess code I used to access php file with .html extension
RewriteRule ^(.*)\.html$ $1.php
Now the problem is, I can access same file with both extensions like /services.php file access from /services.php and /services.html
I want to set redirection to .html if visitor type .php extension but I am failed to do so, I have appplied many logic but it gives me "500 internal server error".
I really apppriciate your suggestions and help.

I am So Sorry Mr. Nitesh for that I also got same problem in my website cheap web design company, It is also core PHP, And I want to show html extension to my visitors.
I also search the real logic for my website.

Similar Messages

  • [SOLVED] Problem with .htaccess and user dirs.

    Hi!..
    I write here because i have a problem with .htaccess files and url rewrites.
    I deployed a Cakephp[1] app in my /home/~asmerkin/public_html/books directory. This folder contains a .htaccess file with the following directives:
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteRule ^$ app/webroot/ [L]
    RewriteRule (.*) app/webroot/$1 [L]
    </IfModule>
    My server works well in user directories but it fails to rewrite urls. When i go to http://localhost/~asmerkin/books/ apache returns 404 error. If i go to apache log i find this:
    [Sat Sep 04 02:02:02 2010] [error] [client 127.0.0.1] File does not exist: /srv/http/home
    So the .htaccess is working but the url it rewrites is not correct. My httpd.conf file is this file[2]  and my httpd-userdir.conf is this one[3].
    So i'd like to know if somebody can help me with this issue. I tried everything without results.
    Thank you!
    [1]: Cakephp.org
    [2]: http://perkin.pastebin.com/g0dbbW2P
    [3]: http://perkin.pastebin.com/fprNYCRY
    Last edited by Perkin (2010-09-06 11:24:55)

    Finally i had to edit my .htaccess file adding a RewriteBase rule to it.

  • Problem with Audio MIDI Setup using multiple accounts

    I'm having a problem with Audio MIDI Setup recognizing all of the MIDI devices on a G4 Tower with a non-administrator account. The main administrator account has no problem seeing anything, but the non-admin account won't see anything. Does it all have to be added in manually, or is there a preferences file to copy over that will take care of this. Failing that, is it a problem with file permissions? Any help would be greatly appreciated.

    Don't know whether this of any help, but there's an identifiable issue with AMS and Digital Performer 5 where DP5 simply won't load with AMS setups configured with previous versions of DP. Which is probably irrelevant to your problem, but ...
    What I and other DP users have found we have to do is start with a completely new, blank AMS setup, and reconfigure our devices from scratch, and although this was kind of hit and miss and on the fly (don't really understand what the the issue was, exactly), I think the bottom line was if we used the new AMS setup with DP5 before anything else that might cause its data tables to change, we were ok.
    So if you can do it, it might be worth setting AMS to a new blank template, then connecting your interfaces, see how far you get. And always make sure you've got the latest drivers of course, though I'm sure you've done that.
    Never used Mbox or 410, but I've an Ozonic which I think uses the same M-Audio firewire drivers as the 410, and don't have any problem with that, FWIW.
    G5 Dual 2.7, MacMini, iMac 700; P4/XP Desk & Lap.   Mac OS X (10.4.8)   mLan:01x/i88x; DP 5.1, Cubase SX3, NI Komplete, Melodyne.

  • The problem of Shockwave10 online setup

    It seems the online setup of Shockwave10 has problem. Many
    times, shockwave movie can not be seen after Shockwave10 is
    installed on line, especially on Win98/WinXP(I guess it has the
    same matter in winMe) OS.(And I guess it relates to IE version, but
    I have no time to test it)
    And if online setup was executed firstly, installing of
    Shockwave10 offline setup will often fail(It prompts success, but
    shockwave movies can not be seen yet). very strange. If online
    setup didn't execute before, Shockwave10 offline setup would alway
    succeed, no problem.
    Starting online setup is the default mode of shockwave
    movie, so customers would not download the offline setup program in
    general, even if you give a hyperlink. Many customers telephoned me
    directly and said "not work!", and then give up visiting the movie.
    I feel headache for that.
    I think many of you had met this program. What did you do
    for that?

    ... I have used parallels desktop and google chrome and internet explorer and nothing works.
    Have you tried Safari? Works for me.

  • HttpURLConnection doesn't handle htaccess redirect

    I wrote this code to check if there is redirect and i successed but it doesn't handle htaccess redirect
    I know htaccess redirect == 301 but here it give me 200 WHY
    I want to handle htaccess redirect any help ?
       URL link=null; int httpResponseCode=0;
        try {
            link = new URL("http://www.vbseo.com/forumdisplay.php?f=234");
            HttpURLConnection linkconnection=(HttpURLConnection)link.openConnection();
            httpResponseCode = linkconnection.getResponseCode();
        } catch (Exception e) {}
        System.out.println(httpResponseCode);

    It actually follows redirects automatically, that's why you get a 200 response. It is possible to tell it not to follow redirects, just have a look at the API documentation and you will see the method to call if you want that to happen.

  • Problems with in-band setup on 2540FC array

    I have an Ultra45 with a SG-XPCIE1FC-QF4 connected to a 2540FC. I have installed CAM software 6.2.0.13 with no problems and need to setup and manage this using in-band management.
    I have looked around the download pages and I believe I need:
    SMagent-SOL-90.00.00.06.pkg
    and
    SMruntime-SOL-10.10.02.00.pkg
    for in-band management.
    I was able to install the SMagent-SOL-90.00.00.06.pkg with no problems, but when I install the SMruntime-SOL-10.10.02.00.pkg I get the following errors and am at a loss for what to do next, any help is appreciated:
    hostname:/2540FC-software(root)# pkgadd -d SMruntime-SOL-10.10.02.00.pkg
    The following packages are available:
    1 SMruntime SANtricity Storage Manager Runtime
    (sparc) 10.10.02.00
    Select package(s) you wish to process (or 'all' to process
    all packages). (default: all) [?,??,q]: all
    Processing package instance <SMruntime> from </2540FC-software/SMruntime-SOL-10.10.02.00.pkg>
    SANtricity Storage Manager Runtime(sparc) 10.10.02.00
    cpio: Unexpected end-of-archive encountered.
    1 errors
    pkgadd: ERROR: attempt to process datastream failed
    - process </usr/bin/cpio -icdumD -C 512> failed, exit code 1
    pkgadd: ERROR: unable to unpack datastream
    Installation of <SMruntime> failed (internal error).
    No changes were made to the system.

    Well, I am using from CDROM for CAM 6.2
    checksum:
    1013790347 100432384 SMruntime-SOL-10.30.02.00.pkg
    used it on solaris 10.
    Please compare the checksum.
    Edited by: nitin.k on Feb 11, 2009 10:01 AM

  • Problems with first time setup

    Hi to all and please be kind to this new applee.  I am vary familar with Windows but not Apple.
    I am having problems with first time setup.  Choice wifi network ZAJ34 has full connectino bars but requires a password to connect with it.  Tried to use "Connect to iTunes" and plugged in the USB cable.  Windows7 ran ok and "MyComputer\Apple iPod" shows up in Explorer.  All I get to is the screen that shows the cable pointing to the music symbol.  I am new to Applie iPod so I am totally lost.  I have the Apple iPod touch 8GB Black (4th Generation) CURRENT MODEL.
    Operating System - iPod touch User Guide (For iOS 5.1 Software) downloaded, not sure.
    Thanks
    Wayne

    I find this,
    Before restoring:
    Verify that you are using the latest version of iTunes. [How?  I am not past selecting a network.]
    Back up your device. [Do not know how, again, I am not past selecting a network.]
    Transfer and sync content to your computer. [Hooked up the USB cable and nothing happens.]
    Restoring your iOS device
    Connect your device to your computer. [Hooked up the USB cable and nothing happens.]
    Select your iPhone, iPad, or iPod touch when it appears in iTunes under Devices. Select the Summary tab, and click the Restore button. [iPod touch when it appears in iTunes under Devices, is it in Control Panel.  I looked in Device Manager and so only drivers etc.

  • WRT54G2 redirects setup page to external website

    I have a few WRT54G2 units that I am attempting to administer remotely.  When I try to access the setup page I get as far as the authentication popup and then I get redirected to:
    http://websearch.linksys.com/error_redirect_site/get_error_redirect?eg=0&job=natipaddress
    A little background:  These units are all using indentical configurations and use the same IPs.  They are all setup in a DMZ in each remote site as Wireless Aceess Points and the necessary NAT policies are in place to allow setup access from my location.  I have many WRT54G units deployed in this same manner and have no problems.  If I am connected directly I do not see this issue.
    Anyone have any ideas how to get around this?

    Remote management is for allowing connections from the WAN port.  I have the NAT policies connecting through to the LAN so remote management doesn't apply.  Basically each site has it's own firewall (Sonicwall) and it's DMZ port is connected to one of the WRT54G2's LAN port.  The WRT54G2's WAN port is vacant.  The Sonicwall handles DHCP for the DMZ so all the WRT54G2 does is act as an wireless access point.  It does work fine with the WRT54G but we had a couple fail and we replaced them with these newer models which work in every every other way but this.

  • GPO (as a whole) problem or Folder Redirection Problem?

    Hello everyone,
    After a couple hours of looking at different TN articles on folder redirection I just can't get it to work properly. I had some major system errors and had to perform a clean install of the OS. My folder redirections from the old install seem to be in place
    and are about the same size despite me backing up all the content before the reinstall on each terminal (4 of them) to a usb drive.
    I enabled folder redirection through the dashboard and performed a gpupdate /force I see the GPO in the Group Policy editor but none of my machines seem to be accepting any group policies now that I look at it and write this I have firefox set to update
    to the latest .msi and it isn't doing that either could this be a bigger problem than just folder redirection?
    Any tips or links to articles I may have not seen would be much appreciated.
    Thank you in advance everyone.

    Hi James,
    Based on your description, I understand that you enable folder redirection (click Implement Group Policy on
    Dashboard) on a Windows Server 2012 Essentials (or a Windows Server 2012 R2 Essentials?).
    On current situation, please refer to following and check.
    1. Would you please let me know edition information of this client computer?
    2. On the server essentials, please open Group Policy Management. Then navigate to WSE Group Policy Folder Redirection and click it. In right panel, navigate to WMI Filtering
    and select WSE Group Policy WMI Filter, then click Open button. Please check
    Queries in the WMI Filter. You can psot complete queries here (include Namespace and Query).
    3. On the client computer, please run the command in a command prompt:
    gpresult /z > c:\policy.txt. Then check this policy.txt in C drive or post the result here.
    If any update, please feel free to let me know.
    Hope this helps.
    Best regards,
    Justin Gu

  • Extraction Problem- while filling the setup table

    Hi all,
    I have a problem when i  fill the setup table for LO cockpit Extraction on any SD datasources (2_LIS_VAHDR,2lis_13_vdkon etc.,). i am done with LBWQ successfully. i also verified the datasources in RSA6. They are in active status in RSA7-delta queue.
    After i submit the request to fill the setup table, i am getting
    "datasource 2_LIS_VAHDR contains data still to be transferred". if i check the extract checker (RSA3) i am getting the error msg "data source is not defined in the source system"
    Can anybody help me on this?
    one of my friend suggested that it could be the reason that some jobs are in active status that loads/updates data into base tables which the datasources refers.
    Any idea on the reason and resolutions?
    Greatly appreciated !

    Hi Vijaya,
    We too got the same Error : " the datasources are not defined in the source system".
    This is source system connection problem.  Check whether connection between R/3 and BW is active.
    This error occurs when the connection is inactive.
    Also, if it is copy client, then check data exists in other client. If so delete the setup tables data in that client as well.
    This will resolve your issue.
    Thanks
    Edited by: Allen Fyne on Aug 9, 2008 6:47 PM

  • Problem while filling the setup table

    Hi experts,
    i am extracting data from 2lis_12_vcitm, while filling the setup table it showing bellow error message,
    NO EXTRACT STRUCTURE ACTIVATE OR NO BW CONNECTED
    but i Extract structure is in active mode and BW connection also is there.
    what is the problem,
    please help me,
    answer will be appreciated with full points,
    regards,
    venkat

    Hi Venkata,
    If u are looking for reinitialization to ur targets and which needs the refilling of setup tables then u need to perform the following activities.
    Try to take the down time in R3 to stop the posting.
    try to empty the queue(both the extraction and Delta queue in R3 and deeavtivate the V3 update) and then delte the data in ur targets in BW which are getting feeded from these Data sources and remove the init flag at the Infopackage level for the respective DS's.
    And then check if there is any blocked records in SM13 for ur application.
    Delete the existing set up for the application 12.
    And then refill the setup tables (may be u can think of multiple setups to make this execution faster and to reduce the R3 load).
    Once the setup is done.. then take init-without data transfer for ur DS's in BW and then activate the V3 in R3.Down time can be taken off here.
    and then take repair full load(which carry all of ur Setup tables data to ur targets). Once the repair is done then u can look for the regular deltas...
    For more information u can search SDN on the same..
    thanks
    Assign points if this helps

  • Problem with "call redirect" in CRS script

    Hi all,
    I have just started to get myself familiar with scripting in Cisco CRS (version 5.0(2) but have run in
    to a problem which I do not understand.
    I have created four applications and three queues. One application is just a menu script, that
    when the appropriate key is pressed, redirects callers with the "call redirect" function to the
    trigger entry number of one of the other three applications which is assigned to a queue.
    When a call goes directly to the trigger, not through the menu script, the call is correctly added
    to the historical reporting database. When the call is redirected by the menu script, it will not
    show up in historical reporting.
    scenario:
    external number1 --> Menu  --> choice 1 --> call redirect(external number2)
                                             --> choice 2 --> call redirect(external number3)
                                             --> choice 3 --> call redirect(external number4)
    external number2 --> queue1
    external number3 --> queue2
    external number4 --> queue3
    Thank you for your help.
    kind regards
    Andreas

    Hello Jonathan,
    for instance in the Contact Service Queue Activity Report (by CSQ) the calls, redirected by the menu
    script, do not show up in the total/handled or abandoned calls count. In realtime reporting an active call
    coming from the menu script is shown as reserved.
    thank you
    kind regards
    Andreas

  • Problem with send.redirect

    Hi,
    I am redirecting a Jspx Page from Page1 to Page2,
    i am using send.redirect(./../../Page2?paramaters), this works absolutely fine, when i execute the Application in StandAlone OC4J, and on Oracle App Server within Firewall,
    The above fails when accessed outside Firewall
    Please can anyone help me.

    Hi,
    do you really use the following addressing ?
    ./../../Page2
    I assume that your problem occurs because the proxy server cannot resolve this address. Since you do a redirect, you should use the contxt ath and virtual path information
    Frank

  • 10.6.2 USB headphones problem  + puzzling Audio Midi Setup workaround

    After updating to 10.6.2, my Logitech USB headphones started behaving strangely -- on two separate machines (a 2006 MacBook and a 2009 Mac Pro), so it's not a fault with the computer.
    Symptoms:
    1. no sound in Skype
    2. no sound in YouTube
    3. sound, but low volume levels in iTunes when volume is at highest setting
    Audio output from the headphone jack and internal speaker remained normal, with no problems.
    I knew enough to fiddle with Audio Midi Setup, and discovered the following. The problems described above remained whenever the volume controls for channels 1 and 2 were equal.
    The minute the volume controls were set to different levels for the two channels, sound reappeared -- and the greater the disparity, the louder the overall volume coming to both ears. For example setting channel 1 to 0.83 value/-1.00 dB and channel 2 to 1.00 value/3.00 dB produces an adequate volume level overall (though I suppose it is coming at the cost of an actual inequality between the two stereo channels).
    Am I correct to assume that I have uncovered a bug here? I had no such problems before 10.6.1.
    Unfortunately, I don't have a second pair of USB headphones to test whether that makes a difference.

    Update to my own message: It's not necessary to go to Audio Midi Setup to see the effect. In the Sound preference pane as well, setting the balance dead center causes the sound to go to zero, but unbalancing it in favor of either the left or right brings the sound back -- the more unbalanced, the louder.
    Furthermore, the balance control does not actually reduce the volume to either ear when moved to the left or the right. That is, with balance all the way to the left, I get louder volume...out of both ears.
    No such problem when playing through the regular headphone jack.

  • Problem with external screen setup

    Brand new iMac 20" with 9400 graphics. When my external screen is swithed OFF, but still plugged in, I have serious video and mouse—lag. When external screen is ON, there is noe problem what so ever.
    Video setup:
    • Mini displayport adapter----->DVI
    This my external screen modell<-----specs.
    <a href='http://bildr.no/view/366492'>

    OK…same dilemma with my unibody mb.

Maybe you are looking for

  • Bridge is not linked up with Photoshop 2014

    When I go to a photo in Bridge it opens in Windows photo viewer and does not even give the option of Photoshop. This is not right with this program - never had that problem and it is very bad for my work flow.

  • Boot with software RAID0

    Hi Everybody, is it possible to boot my Mac Pro with two SSDs that are in a software RAID 0 array? The specs of the SSDs are: write 285MB/s, read 275MB/s. Would there be any increase in speed, or is the software RAID limited to some amount? cheers, M

  • .lbi files and css

    I'm making a nav bar library item and trying to apply styles to the links. I can't figure out how to write an inline style for hover. I know how to write it in the external css file. So I'm wondering if you can link to an external css file from withi

  • Download of E10

    When I try to download the trial version of elements 10 I get "error 0".  What is that and how do I download the trial version?

  • Mon iphone4s et bloquer en mode restauration je ne sait pas quoi faire

    bonjour mon iphone 4s est bloquer en mode restauration et quand je le branche sur itune sa me met une erreur