Jump to content

girish.kc

Members
  • Posts

    45
  • Joined

  • Last visited

Everything posted by girish.kc

  1. Hi, I have developer a PHP application which works fine in root directory [document_root]. No I have a situation that needs the application to work from any directory by changing few config parameters. I have used the root-relative links in allover the application. Is there any easy way to accomplish this? If not I have to change all the pages having the links. Please advice. Girish
  2. Yes . I tried without [L]. Same result.
  3. No.. It is creating the problem. When a POST request is sent, this 301 will redirect the request and the POST request becomes GET. So the POST value will be lost..
  4. Yes. I have the index.php in DirectoryIndex, But for the request "https://api.xyz.com/folder" I am getting the following response
  5. Hi, Is there a way to modify the incoming URL request with rewrite? In my case, I have an external application calling mine with the URL I want this to be rewritten as I tried the following .htaccess to do that. <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^folder$ /folder/index.php [L] </IfModule> But the problem here is, this is a POST request and because of rewrite server is sending back the '301 Moved Permanently' status back to the requester. Is there any way I can skip sending 301 and redirect without loosing the POST data? Thanks, Girish
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.