1
vote
0answers
27 views

IIS rewrite rules for subdomain and nonexistent files

Setup: I know how to use a rewrite rule to route urls to a routing script such as router.php. I know how to use a rewrite rule to route urls containing a subdomain to subfolders in the document ...
0
votes
1answer
20 views

Nginx rewrite and 50x.html

I'm trying to set up a website where writing for example /users/add redirects me to /index.php?table=users&action=add I wrote the following rules: rewrite ^/(.+)/(.+)/$ ...
0
votes
0answers
25 views

Nginx URL rewrite / mask

Currently, my $_GET parameters are ordered alphabetically (a, b, c, d, etc...) For example: https://domain.com/?a=Menu1&b=Menu2&c=Menu3 What I want is this URL: ...
0
votes
0answers
21 views

Custom rewrite rule - migationg to WordPress CMS

I am trying to move my image gallery site from one CMS to Wordpress. On current CMS I have page with medium size image on it with URL: ...
0
votes
1answer
66 views

NginX Causing PHP File To Be Executed Twice

I'm between a rock and a hard place trying to figure out why this is going on. For some reason, when I open my website the index.php file is being executed. I have been able to narrow it down to ...
1
vote
0answers
54 views

Request exceeded the limit of 100 internal redirects due to probable configuration error

This error only seems to happen to a few pages. Others will load just fine, some slower, but others will error out: # BEGIN WPSuperCache <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / ...
0
votes
0answers
59 views

Nginx not passing rewrite to FPM

Here are the pertinent lines of my nginx.conf file. location / { try_files $uri $uri/ /index.php @rewrite; } location @rewrite { rewrite ^/customer/(.*)$ /customersDisplay.php?id=$1; ...
1
vote
0answers
123 views

nginx codeigniter rewrite: Controller name conflicts with directory

I'm trying out nginx and porting my existing apache configuration to nginx. I have managed to reroute the codeigniter url's successfully, but I'm having a problem with one particular controller whose ...
0
votes
1answer
45 views

nginx, php and urls with php files in them [closed]

I've just done an install of moodle and it's using urls like this for its theme: http://moodle.example.com/theme/styles.php/standard/1380191797/all nginx isn't picking up that that's a call to a ...
1
vote
1answer
965 views

My nginx rewrite is downloading the php file

I have the following rewrite rule I'm trying: location / { index index.php index.html; rewrite ^/test$ /test.php break; } And I ...
0
votes
2answers
2k views

Removing php extension with .htaccess does not work

I use the following code on my site elixnews.com to remove php extension from: RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond ...
3
votes
1answer
45 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
205 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
867 views

nginx: Disallow Access to a Folder, except some subfolders

How it is possible to deny access to a folder, but except some subfolders in it from "deny"? I tried something like this (in this order): #this subfolder shouldn't be denied and php scripts inside ...
1
vote
1answer
100 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
147 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
154 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 ...
3
votes
2answers
340 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
121 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
1answer
222 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
441 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
190 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
34 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
119 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
186 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
99 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
668 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
309 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
195 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
1k 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
239 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
105 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
122 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
5k 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
150 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
594 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
4k 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
255 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", ...
9
votes
2answers
4k 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 ...