URL rewriting module for Apache web servers

learn more… | top users | synonyms (1)

2
votes
0answers
443 views

Apache 2.2: RewriteMap, ProxyPass interpolation and Keep-Alive

I have an Apache httpd used as a SSL reverse proxy frontend for a lot of backends. I compute the name of the backend from the path given by the user. e.g: https://myhostname.com/myaccount translates ...
2
votes
0answers
319 views

Apache keeps adding 8080 port by itself while I'm telling it to use 80 only

Here's my httpd.conf. Inside it, I have the following in place #Listen 12.34.56.78:80 #Listen 127.0.0.1:8887 Listen 127.0.0.1:80 #Listen 127.0.0.1:8080 Listen 192.168.1.4:80 and I have a .htaccess ...
2
votes
0answers
380 views

Changing a set-cookie header using mod_rewrite/mod_proxy

I have a bunch of cgi scripts, which are served using HTTPS. They can only be reached on the intranet, not from the outside. They set a cookie with the attribute 'Secure', so that it can only be send ...
2
votes
0answers
461 views

setting up mod_proxy - plesk, apache, .htaccess?

I want to set up mod_proxy to work so that my blog is running under a subdirectory of my site rather than subdomain so i get the seo backlink benefit. What im looking to do is get my tumblr blog ...
2
votes
0answers
1k views

Apache + Codeigniter + New Server + Unexpected Errors

Alright here is the situation: I use to have my codeigniter site at bluehost were I did not have root access, I have since moved that site to rackspace. I have not changed any of the PHP code yet ...
2
votes
0answers
350 views

Cherokee port rewrite urls from .htaccess

I am tryging to port my htaccess rewrite rules to Cherokee. I already tried this. This works for me, but I can't seem to get the rule I am using working. The apache rule: RewriteRule ...
1
vote
0answers
44 views

Why can't I redirect url's with “index.html” in it to a php file?

I'm stuck in a big problem, but let me start with one part of it. I am wodering why this works: RewriteRule ^(.*)index.html $1 [R=301,L] while this doesn't: RewriteCond %{REQUEST_FILENAME} ...
1
vote
0answers
61 views

apache mod_rewrite rules for subdomain and restful structure

I'm trying to setup several rewrite rules that allow a restful url structure to exist, but only on a certain subdomain. Several subdomains already point to the shared codebase. I also have an ...
1
vote
0answers
23 views

Is it worthwhile, for performance reasons, to surround Apache mod_rewrite checks with Directives like Location, DirectoryMatch, etc?

I currently have a number of Apache rewrite rules using mod_rewrite (Apache 2.2). When I turn on rewrite logging I see a number of evaluations of rewrite conditions for files that have no chance of ...
1
vote
0answers
105 views

htaccess, errordocument and joomla rewrite

I need to setup a 404 error handling in my .htaccess, besides handling some 301 redirects for the links of an old website. The new site is made with Joomla, the old site was written in asp. Sef urls ...
1
vote
0answers
86 views

Multiple query string matches in a single RewriteRule

Using mod_rewrite on an Apache2 web server. I have a webpage (form.php) which has multiple HTML input[type=checkbox] elements, all with the name attribute set to "type[]". When the form on form.php ...
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} ^(.*)//(.*)$ ...
1
vote
0answers
116 views

mod_rewrite after a cname

I have the domain foo.bar.example.com. foo is one of many sub-subdomains under bar.example.com. I need to capture and redirect all links at foo.bar.example.com that begin with "/special/". ...
1
vote
0answers
82 views

Mass virtual hosting and subdomain

I'm trying to setup zero-config web-development environment: wildcard DNS plus dynamic virtual hosts. Here is my v-hosts config: NameVirtualHost *:80 <VirtualHost *:80> ServerAlias *.dev ...
1
vote
0answers
59 views

Conflict with 3 different RewriteRules in .htaccess?

I'm using the below in my .htaccess file. There 3 types of redirects: redirect to directory /admin/index.php redirect to specific .php files e.g. /about redirect to user profile page from /John ...
1
vote
0answers
31 views

Rewrite not functioning in httpd.conf

My httpd.conf has: <Directory "/var/www/site"> AllowOverride All RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^site.com [NC] RewriteRule ^(.*)$ ...
1
vote
0answers
831 views

“ajp_read_header: ajp_ilink_receive failed”

We have Apache 2.2.24 in front of Tomcat 7.0.33. We're using AJP connectors with APR/native configured. I recently noticed a number of 500 errors in the Apache access logs for a small proportion ...
1
vote
0answers
156 views

Lighttpd and OpenCart GET requests with mod_rewrite

Our OpenCart is running on Lighttpd and we use mod_rewrite for SEO. Whenever we have our rewrite rules on, GET requests such as http://www.site.com/dev/?gclid=XXX do not work. Here are my current ...
1
vote
0answers
62 views

mod_rewrite changes case even if not matching RewriteCond?

I have a really strange problem with my MediaWiki which I want to have articles of the form mywiki.org/MyArticle. Now I got most of it to work using the following code but it mysteriously cannot ...
1
vote
0answers
218 views

Apache2 mod-rewrite ruleset for AJAX webapp

I have an ajax webapp i'd like to make indexable to google. My paths use the hashbang, and look like: http://tld.com/?_escaped_fragment_en/news http://tld.com/?_escaped_fragment_de/news or ...
1
vote
0answers
93 views

Why forbidding all php files from a directory with mod_rewrite denies access to the directory listing?

Server: Apache 2.2.17 I have the next .htaccess file: <IfModule mod_rewrite.c> RewriteEngine On RewriteRule !^includes/ - [S=1] RewriteRule ^includes/[^/]+\.php$ - [F,L] RewriteRule ...
1
vote
0answers
140 views

Apache: Setting up a reverse proxy configuration with SSL with url rewriting

There is a host: secure.foo.com that exposes a webservice using https I want to create a reverse proxy using Apache that maps a local http port on a server internal.bar.com to the https service ...
1
vote
0answers
309 views

mod_rewrite in alias directory not working

I have a wp blog which lives under /var/www/mysite.com/blog and is accessible via www.mysite.com/blog When visiting www.mysite.com/blog/ I see the index page, but all links on subdirectories are no ...
1
vote
0answers
216 views

Exclude directory from rewrite with mod_rewrite and lighttpd

Im migrating an apache2 server to Lighttpd, however im having some issues with Mod_Rewrite. I have a directory /api/, which I need to exclude from the rewriting rules as follows: url.rewrite-once = ...
1
vote
0answers
41 views

apache url rewrite not working as expected

looks as if it's working now, i'm not doing anything... stange... I want to write http://www.1024jobs.net/jobs/view/17.jhtml to http://www.1024jobs.com/jobs/view/17.jhtml so i have tried either of ...
1
vote
0answers
113 views

convert apache rewrite to nginx

I am confused to convert this rules to nginx. RewriteEngine On RewriteCond %{REQUEST_URI} ^(.+)\~s$ RewriteRule ^(.*) stats.php?u=$1 [L] RewriteCond %{REQUEST_URI} ^(.+)\~d$ RewriteRule ^(.*) ...
1
vote
0answers
717 views

Mod_rewrite with UTF-8 accent, multiviews , .htaccess

Problem: with Mod_rewrite, multiview & Apache config Introduction: The website is in french and i had problem with unicode encoding and mod_rewrite within php wihtout multiviews Old server was ...
1
vote
0answers
281 views

Apache configuration for silent rewrite of query strings like codeigniter

Codeigniter rewrites query strings like the following: http://somedomain.com/index.php?q=something to become: http://somedomain.com/index.php/q/something I'd like to imitate this behavior on a ...
1
vote
0answers
411 views

Cakephp CSS file not loading

I have a website working on one server. I am changing hosting, so I created a website on another server for testing. Everything seems to be working, except CSS. It is not loading at all. I have 777 ...
1
vote
0answers
277 views

Why firefox handle urlencode differently with apache mod-rewrite B flag?

Recently I have encontered a strange problem about urlencode, I happened to have a "+" in my both pathinfo and querystring parts of the url. For exampele: http://example.com/A + B?s=C + D I use ...
1
vote
0answers
180 views

mod_rewrite: internal rewrite to (fake) clean URL not possible.

This is more a why question. I'm using a CMS that handles clean URLs via mod_rewrite out of the box. Website has a section /accessories that now has to be renamed to /store. Being on lazy mode, I ...
1
vote
0answers
105 views

rewrite HTTP verbs

I have a REST api that is invoked by a Javascript Web application. HTML/CSS and JS files are stored locally and served by Apache, and the REST api is invoked with a ProxyPass directive by Apache on a ...
1
vote
0answers
240 views

nested drupal site clean urls

I have a main drupal7 site and a drupal6 site that "lives" within the main drupal7 site. The urls look like this: example_d7.com and example_d7.com/dir/example_d6. Each of these sites are served out ...
1
vote
0answers
223 views

Apache mod_proxy site alias, alternative domains

Guys! Having a problem with apache mod_proxy, hoping someone can help Preface: We need a new domain (http://section1.info) to direct users to (http://domain.info/?q=section1) and maintain ...
0
votes
0answers
17 views

Can you do a masked URL rewrite to a different protocol (in Apache)

Apache 2.2.15; I want to do: RewriteCond %{HTTP_HOST} site1.com RewriteRule (.*) https://site2.com [R=301,P,L] But that does not work. I put the P in there thinking it might allow the mod_proxy ...
0
votes
0answers
18 views

Proxy to SSL site (on another server) from a non SSL site

I have a *:80 virtual host in Apache 2.2.15 which is just a bunch of URL rewrites like: ServerAlias foo.bar biz.baz tit.tat RewriteRule / http://somesite.com (R=301,L) ServerAlias ...
0
votes
0answers
27 views

Showing only domain with .htaccess and mod_rewrite

I currently have koken installed to my website (wythDOTno-ipDOTbiz/koken). I know that the .htaccess file in the koken folder is working, because it is making the url's clean by removing the ...
0
votes
0answers
10 views

nginx rewrite for php restful api apache htaccess

I have an apache htaccess file used with Restful API tutorial <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-s RewriteRule ...
0
votes
0answers
13 views

Remove Port Access Using mod_rewrite or Something Else

Server Info: Apache VPS, WHM/cPanel, CentOS I am using a CDN/reverse proxy (Cloudflare) to obscure the true IP of my server. So I intend to access WHM/cPanel using the direct IP like this: ...
0
votes
0answers
81 views

Apache 2.4 + mod_rewrite + FastCGI (php-cgi.exe) on Windows

I am trying to port my Mac config on Windows for some of my clients. Since Windows is not Mac OS, I have to use php-cgi.exe instead of PHP-FPM. I have tested each component individually and ...
0
votes
0answers
21 views

Apache Redirect rule with same url

I am trying to write a RewriteCond and RewriteRule to the following. If someone tries to access forex.com or forexample.com they should both redirect to forexample.com/abcd/xyz/. The below rewrite ...
0
votes
0answers
16 views

Handling spaces in SCRIPT_FILENAME with mod_rewrite

I'm having trouble using a reverse proxy when my URL has a space in the script name. For example: http://test.com/exam/good%20job.html?success=1 Gets rewritten and sent to: ...
0
votes
0answers
23 views

Rewrite/configure WebSVN location with MultiViews

I have configured mod_dav_svn 1.8.9 on FreeBSD along with WebSVN 2.3.3 this way: <Location /repos/svn> DAV svn SVNParentPath /usr/local/svn/repos SVNListParentPath On ...
0
votes
0answers
23 views

DirectoryIndex not working properly for rewritten URL

I have domain.com and sub.domain.com pointing to the same server and I'm using mod_rewrite to rewrite URLs for sub.domain.com to the sub subdirectory. I have the following .htaccess file in the ...
0
votes
0answers
7 views

How to get log of the addres that mod_rewrite is redirecting to?

I have defined a rewrite rule that is creating an 404. But I can't find any additional information about where the Apache is really looking for the file so it can't find it and also I don't see ...
0
votes
0answers
62 views

Apache rewriting sub domain URL with www prefix

My website is rewriting all subdomain links with www. for example news.example.com works fine, but if I go to news.example.com/wp-admin it will rewrite the URL to www.example.com/wp-admin ...
0
votes
0answers
12 views

htaccess negation rule not being followed

I'm working on a wordpress blog. The .htaccess file for it includes this block: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond ...
0
votes
0answers
17 views

ProxyPassReverse from unique path and HTTP_HOST

This is probably super simple and something I overlooked (or totally misunderstand). Trying to redirect all incoming traffic for a certain path to one of my other servers (I put the wrong environment ...
0
votes
0answers
41 views

Changing the current URL but serving content from another (same domain) - ProxyPass?

I've been banging my head against the wall with this for months now so I hope someone on here will be able to finally advise what is needed for this. I have some URL's like this:- ...
0
votes
0answers
50 views

Rewrite rule Mod_Proxy truncate file name

I search online for the solution, but nothing :(. I write this simple rule RewriteRule ^(.*)$ http://www.mysite.com/$1 [P,NE,QSA,L] In mysite.it i have an .htaccess with this rule and it's ok, but ...