0
votes
1answer
69 views

convert lighttpd to nginx rewrite rules

I'm trying hard to make my code work on nginx. This configuration works with lighttpd but I want migrate it to nginx. Rewrite rules on lighttd : url.rewrite-once = ( "^/(ui)/(.*)$" => ...
-2
votes
2answers
29 views

redirection of https page in apache [duplicate]

As it currently works. The endusers have to go the URL: https://cloud.olaf.europe.eu/owno and that works but i want the users just to go to: https://cloud.olaf.europe.eu/ to access the page. I ...
0
votes
1answer
51 views

Apache2: Trying to map a subdomain to a subdirectory

So basically I want to have: sub.domain.com/anything -> domain.com/asub/anything I'm a bit new to this and a bit confused. The first thing I did was configure my DNS settings so sub.domain.com goes ...
0
votes
0answers
164 views

access restriction using http_referer in nginx

access restriction in nginx URL: http://test.example.com/pentaho/reporting/reportviewer/report.html?solution=steel-wheels........... I will call the above URL from ...
0
votes
1answer
88 views

Trouble configuring virtual host to allow standard wordpress mod_rewrite for permalinks

I'm having a little trouble getting the standard mod_rewrite that wordpress generates in my directorys .htaccess file to work correctly. The server I'm using has a virtual host set up on it by ...
1
vote
2answers
490 views

Request exceeded the limit of 10 internal redirects

so here is the error [Mon Sep 30 00:09:53 2013] [error] [client 66.249.66.205] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' ...
1
vote
1answer
106 views

Apache as a proxy fowarder to dynamic IP

I've looking aroung the web, but I can't figure out how to do what I'm looking for. So what I'm looking for is a proxy on which will foward the HTTP query based on the IP address I've put in the url ...
0
votes
2answers
887 views

How to Exclude an URL for Apache Mod_proxy?

We have two Apache server as front-end and 4 tomcat server as back-end configured using mod_proxy module as load balancer. Now, we want to exclude an single tomcat url from the mod_proxy load ...
0
votes
2answers
601 views

Server, Database or Code Issue? Magento backend rewrites itself with a index.php which doesnt work

I will be honest and admit my cross posting in magento.stackexchange.com but the reason is that I believe it is a server fault, and now I am looking for proof to present to my dreaded hosting ...
1
vote
0answers
30 views

Mod rewrite to remove a directory

I'm running a PHP web app that has a .htaccess file as below. DirectoryIndex index.php <IfModule mod_rewrite.c> RewriteEngine On #RewriteBase / RewriteCond %{REQUEST_URI} ^(.*)//(.*)$ ...
0
votes
1answer
57 views

Converting .htaccess to nginx

RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*) p.php?id=$1 [L,QSA] How would I change that to work with nginx? Also, where do I place ...
0
votes
1answer
244 views

HowTo rewrite subdomain to apache userdir

As described in http://cjmaclachlan.blogspot.de/2008/02/modrewrite-moduserdir-subdomains-and.html I want to rewrite internally http://xy.user.phpfarm.lan -> http://user.phpfarm.lan/~xy/ userdir is ...
1
vote
1answer
168 views

Apache mod_rewrite loaded and working, but not 'seen' by rssLounge application

I'm tring to install and configure RSS Lounge on my Raspberry PI (Wheezy 3.2.27). This is what I get when I go to http://localhost/rsslounge: The Apache module "mod_rewrite" is not loaded ...
0
votes
1answer
119 views

htaccess rewrite different folder url, two index files

I've been searching for awhile now and haven't found anything that comes close to what I'm trying to accomplish. Right now my URL's look like this: www.website.com/something which are using the ...
0
votes
1answer
186 views

Add a trailing slash mod_rewrite

just wondering how I add a trailing slash at the end of my URL's using Mod_Rewrite? This is my .htaccess file currently: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond ...
0
votes
0answers
244 views

Password protect all requests except a certain directory

All requests on my domain go through a central PHP file (CMS) and I want to add a simple htaccess password to the site to all requests except those that match a certain sub directory. WOULD NOT ASK ...
0
votes
1answer
89 views

Rewrite a directory to / while keeping actual directory structure in tact?

My site exists www.site.com/forum I have no need for /forum but I do not want to go through the effort of changing everything. Is there a way I can get Apache to rewrite the URL so that it uses the ...
-1
votes
1answer
331 views

Redirecting https requests to a subdomain with Apache2 and mod_rewrite

I have a site that has an SSL certificate on a subdomain, let's call it https:// ssl.maindomain.com. I want to redirect all https requests on https:// maindomain.com to https:// ssl.maindomain.com, ...
0
votes
1answer
161 views

Apache server different DocumentRoot for specific IPs [duplicate]

Possible Duplicate: Apache virtual host based on source IP For a certain visitor, identified by an IP, how to server contents from different DocumentRoot?
0
votes
1answer
256 views

Apache mod_rewrite 500 Internal Server Error

I am trying to create a dynamic subdomain and I am having great difficulty, I keep getting 500 Internal Server Error So for example the actual domain should be ...
1
vote
1answer
384 views

Turn off 302 redirect and automatically redirect

I am testing redirects using curl on my localhost. When I run this command: $curl "test.test.com/landing/0192" I get this output: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> ...
0
votes
2answers
197 views

Redirect Rule for All Requests that Come with A Specific Server Alias

I am trying to write a redirect rule that will send all incoming requests directed at given server alias. Below is what my .conf file looks like. I am having problems with the first rule associated ...
2
votes
2answers
384 views

Apache mod_rewrite adding extra slash at the end of URL

I'm running CentOS 6.0 and am trying to make mod_rewrite remove the www from any URL's prefixed with it. Here's the code I have in my httpd.conf: NOTE: I am using a VPS with full root access so I am ...
6
votes
2answers
4k views

best way to debug nginx config file?

I have a bunch of rewrite rules that I have to port from apache to nginx. It's a rather painful process because I'm not able to see if my rewrite rules and "if" conditions are working as I want them ...
0
votes
1answer
122 views

Can't get mod_rewrite to work with ubuntu, have tried all the usual suspects (turning it on in config etc)

Stack, I'm trying to install a local version of my website onto my laptop so I can do development work without terrifying my users and exploding the live site. I went ahead and installed ubuntu on ...
0
votes
1answer
183 views

mod_rewrite fails to redirect into the lib folder

I've got a rewriterule that works for everything except the lib folder. The rule is RewriteRule ^/uk(.*) $1 It's one of a much more complex set of rules but I've disabled all but this one. The rule ...
0
votes
0answers
221 views

Apache mod_rewrite 403 on every page

I'm using Apache/2.2.3 (Linux/SUSE) with virtual hosts and every website brings an 403 error. mod_rewrite module is loaded. rewrite shows in the output of apache2ctl -t -D DUMP_MODULES. In the error ...
0
votes
1answer
329 views

.htaccess mod_rewrite remove .php extension, but preserve URL path

I currently have PHP scripts that work properly, being called like this: www.example.com/user.php/paul www.example.com/tag.php/food I'm having trouble getting .htaccess to rewrite properly. I'm ...
0
votes
1answer
1k views

How to increase filename size limit on EXT3 (on ubuntu)

The default limit of how long a filename can be on EXT3 is 255 characters. I have a unique requirement where I need much longer filenames (apparently because mod_rewrite of apache uses filenames for ...
0
votes
3answers
3k views

How to check/enable mod_rewrite on Apache/Linux

I can't get wordpress permalinks working on my Fedora LAMP server and expect it's due to mod_rewrite issue, but I can't figure out How do I check if mod_rewrite exists/is enabled? How do I install ...
1
vote
1answer
216 views

.htaccess modify rules and redirect if there's .php in the url

I got the following code in my .htaccess: Options +FollowSymlinks RewriteBase /temp/test/ RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ...
0
votes
1answer
73 views

mod rewrite help

Ok, I don't know regex very well so I used a generator to help me make a simple mod_rewrite that works. Here's my full URL https://www.huttonchase.com/prodDetails.php?id_prd=683 For testing to make ...
0
votes
1answer
1k views

I have no “AllowOverride” directive in my apache2.conf

I have viewed my httpd.conf and apache2.conf and I have no AllowOverride directive in either of the files. The .htaccess works fine. I have a bunch of rewrites in it, so I know it works. Is apache2 ...
0
votes
1answer
53 views

Can you explain the outcome of this Apache setup?

I had a very strange behavior with my Apache setup and then fixed it, however I would like to understand what really happened. My httpd.conf LOOKED like this: <VirtualHost *:80> ServerName ...
0
votes
1answer
697 views

Apache, mod_rewrite and symlinks/aliases

I'm trying to force the adding of www. if visiting my site. I've added the following to my site conf file: <Directory /var/www/main> Options FollowSymlinks RewriteEngine on ...
0
votes
1answer
87 views

Error 403 when accessing an address to rewrite

I have the following rewrite rules: RewriteRule ^products/([a-zA-Z]+)$ /project/clients/index.php?database=$1&module=products [L,QSA] The directory structure is as follows: ...
0
votes
1answer
239 views

mod_rewrite not working for me

mod_rewrite is not working for my wordpress install on fedora. The module is loading, and AllowOveride is set to All in httpd.conf. Ive restarted apache, and restarted the machine also incase that ...
0
votes
2answers
675 views

How do I host multiple domains on Ubuntu Server (Hardy Heron)?

I am trying to figure out the best way to host multiple domains on my Ubuntu server. I have tried multiple options, but I can't get everything to work the way I want it to. I want to be able to add ...
3
votes
3answers
4k views

Why is this mod_rewrite RewriteRule directive not working in the .htaccess file?

I've got a site that was hosted on a linux el cheapo hosting service that I'm migrating to my Mac OS X 10.5 Leopard Server server running Apache 2.2.8 & PHP 5.2.5 w/rewrite_module enabled and ...
1
vote
4answers
886 views

Redirect users from previous subdomain to new URL

I recently went live with a new website and one of the departments on campus referred users to a virtual domain. For example, www.ia.domain.com masked itself as its own website, which was really ...
4
votes
4answers
5k views

.htaccess not working (mod_rewrite)

Edit: I am pretty sure my .htaccess file is NOT being executed, and the problem is NOT with my rewrite rules. I have not having any luck getting my .htaccess with mod_rewrite working. Basically all ...