2
votes
0answers
31 views

Nginx directory post

THere is a piece of legacy code I'm working on, I can't alter where it POSTs to so I just need to figure a way around it. THe bit of Javascript makes a post as follows - POST /authentication/login/ ...
0
votes
1answer
51 views

apache simple rewrite rule or rewrite condition for query string

Im trying to add a rewrite rule to my htcaccess file and the part Im having trouble wth is the query string. I want to add the query string parameter pid to the rewrite rule. Both lines of code don't ...
0
votes
2answers
198 views

nginx: Disallow Acces to a Folder, except some subfolders

how it is possible to deny access to a folder, but execept some subfolders in it from "deny"? I tried something like this (in this order): #this subfolder shouldnt be denied and php scripts inside ...
1
vote
1answer
87 views

converting apache rewrite rules to nginx

Hello everyone, I am trying to create a UDID protected Cydia Repo but I cannot use it on nginx because of nginx does not use the .htaccess file. The file certain rewrite rules to make ...
1
vote
2answers
120 views

Reverse Proxy Wordpress with Lighttpd

I am deploying an application and a Wordpress installation on AWS. I have Wordpress set up under Apache on an EC2, and my application under Lighttpd, and I want to reverse-proxy Wordpress through the ...
0
votes
3answers
117 views

How to redirect the url of old modified directories

I have a website for classifieds ads. Before I used to modify the URLs to make them more appropriate, but the old URLs are still showing up in Google index and in browser history/bookmarks. Is there ...
2
votes
2answers
125 views

Nginx Mod Rewrite - Rewrite *.png to *.php

I am having an issue with Nginx Rewrites Currently my rule is as seen below rewrite ^/i/(.*?)$ /i/$1.php last; Basically what I want to do is redirect all .png files to .php within the /i ...
0
votes
1answer
89 views

Execute a PHP File Without the .PHP Extension on IIS

How can I execute a PHP File Without the .PHP Extension on IIS server. I have a clone script and in .htaccess file there are rewriterules as following. But it doesn't work on windows 2008 server on ...
0
votes
0answers
166 views

IIS 7.5, PHP, and URL rewrite

I have a PHP (5.4.3) application running in IIS 7.5. I used the URL Rewrite module in IIS to create a user-friendly URL. I entered an example URL (example.com/index.php?module=dashboard&id=123), ...
0
votes
1answer
132 views

nginx: Rewrite PHP does not work

I've a Suffix Proxy installed and I'm using the following rewrite with wildcard subdomain DNS on: location / { if (!-e $request_filename) { rewrite ^(.*)$ /index.php last; break; ...
2
votes
1answer
343 views

Configuring WordPress rewrite rules on IIS7.5 inside virtual application

I have to configure WordPress into a virtual application under a principal website running on ASP.NET 2.0 Classic mode. Everything is working fine, PHP 5.3.13 / MySQL 5.1 / IIS 7.5, the wordpress ...
0
votes
2answers
135 views

How to reverse this Nginx rewrite rule?

I've been having trouble getting Nginx rewrites to work. On Apache I had the following rewrite, which directed all requests that did not request a PHP file to index.php: Options +FollowSymLinks ...
1
vote
1answer
29 views

What would cause PHP variables to be rewritten by the server?

I was given a VM at my company to install web software on. But I came across a rather bizarre issue where PHP variables would be overwritten (rewritten) by the server if they matched a specific ...
0
votes
1answer
104 views

How to set up .httaccess to subfolder

I have these structure on my FTP: one presentation (without .htaccess) second presentation (with .htaccess) - named "sec_pres" third pres. (with .htaccess) - named - "third_pres" How I should ...
0
votes
1answer
165 views

apache, httaccess: write a rule so that xxxxx.txt means “return the source code of xxxxx.php”

I'm not sure this is possible, but I'd like to write a rewrite rule (and any other instruction if needed) in a .htaccess file so that, for every url in that folder, any url ending in .txt is rewritten ...
0
votes
3answers
90 views

Directory agnostic Apache mod_rewrite rule for web applications

I'm in the process of developing a PHP application but I have limited working knowledge of mod_rewrite which I plan to use to create "pretty URLs". Whilst the application is in development I'm ...
0
votes
1answer
542 views

nginx rewrite rule to replace .php endings with /

Basically, I want the ".php" to be replaced with a "/". I tried to just put my rule in the same location where the fastcgi is located. location ~ \.php$ { fastcgi_pass 127.0.0.1:9000; ...
0
votes
1answer
275 views

Htaccess: Rewrite a subdirectory within a domain to the main domain

I have to rewrite a sub directory to go the main domain. For example, I have www.mysite.com and I want to rewrite www.mysite.com/newersite to www.mysite.com This is what I used in my htaccess file: ...
0
votes
1answer
192 views

url rewrite to make generated thumnails cache like static, a syntax question

this is a pain in the ass-problem!! Given: most proxies, do not cache resources with a "?" in their URL even if a Cache-control: public header is present in the response. To enable proxy caching for ...
0
votes
2answers
996 views

How to rewrite query strings in url (\img?src=foo.jpg) into cachable urls (\img-foo.jpg)?

a question that is now partially resolved. A genius who can speak Apache fluently can shine light into this matter... GIVEN: Most proxies, do not cache resources with a "?" in their URL even if a ...
1
vote
1answer
214 views

IIS7 URLRewrite on a PHP site

I have a PHP site running on IIS7 and I need to add some URL rewriting, but so far it seems to be ignoring my rule. Here's the rule: <rewrite> <rules> <rule name="VCard" ...
0
votes
2answers
98 views

Apache redirect

I am trying to redirect the URL: http://www.mydomain.com/productpage.php?id=34 to http://www.mydomain.com/products I have tried using: Redirect permanent /productpage.php?id=34 ...
0
votes
3answers
97 views

Allowing users to use their domain name to their profile?

I have a web site / app where each user as a profile i.e.: mydomain.com/user1 mydomain.com/user2 mydomain.com/user3 etc How do I allow it so that a user can use their own domain name to go to their ...
4
votes
1answer
4k views

Nginx: Rewrite rule for subfolder

I have a subdomain where I want to keep projects I am working on, in order to show these projects to clients. Here is the configuraion file from /etc/nginx/sites-available/projects: server { ...
0
votes
1answer
141 views

Apache fails when I pass an URL as an argument

Hey everybody, Im really confused about this problem. Ill try to describe it: The problem is: ...
0
votes
2answers
530 views

PHP: Extensionless URLs in IIS7 (windows)? (for wordpress)

I have recently installed wordpress but i would like to configure extensionless URLs .. I am using IIS7 but on a shared server. I presume i cna add something to web.config file?? I am little bit ...
0
votes
1answer
3k views

.htaccess rewrite rule for CSS request

Good Morning, I am trying to create RewriteRule for all request for css file within my website to css/filename.css. The procedure is all css files within my website store only in ...
0
votes
7answers
8k views

PHP, url rewriting with htaccess, and Microsoft IIS Url Rewriting?

I am used to working with Apache servers, so when mod_rewrite is enabled, I can create an htaccess file and use url rewriting. Here's my htaccess file: RewriteEngine On RewriteCond ...
3
votes
1answer
197 views

What is the URL_CHANGED Event on IIS7 Request Tracing Log?

I just enabled Failed Request Tracing for a site and I get a URL_CHANGED event as the third item on the log. 1. GENERAL_REQUEST_START SiteId="1", AppPoolId="DefaultAppPool", ConnId="1610613013", ...
8
votes
2answers
3k views

mod_rewrite does not forward GET parameters

I'm having trouble setting up Apache with mod_rewrite on my development machine. Mod_rewrite is active, and works well for some rules. Some rules do not work as intended, like this one: RewriteRule ...