0
votes
1answer
35 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
29 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
63 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
0answers
171 views

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

There are similar questions being asked about the same thing, but this has all of a sudden happened to me. No code was changed, just woke up to find apache using up way too much memory. The error I'm ...
0
votes
1answer
92 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
103 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
194 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
76 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
222 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
142 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
185 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
190 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
148 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
222 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 ...
1
vote
2answers
2k 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
105 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
151 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
191 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
266 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
828 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
1k 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
186 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
70 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
865 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
52 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
489 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
84 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
225 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
635 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
3k 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
861 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 ...