URL rewriting module for Apache web servers

learn more… | top users | synonyms (1)

2
votes
0answers
41 views

Apache rewrite works under FreeBSD, not under CentOS

I have 5 production servers which are running FreeBSD 9.2, but we are planning on transitioning to CentOS. Because of this, I am attempting to set up some virtual machines to emulate our production ...
2
votes
0answers
62 views

Apache mod_rewrite rule to pass specific REQUEST_URI to specific html files

I have a very basic html presentation which I want to use Apache mod_rewrite to handle the URLs. home.html is just an intro page but I want this to be called when there is no REQUEST_URI ...
2
votes
0answers
551 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 ...
2
votes
0answers
669 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
532 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
551 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
232 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 ...
2
votes
0answers
363 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
12 views

apache2.2: ldap_userdir + mod-rewrite does not work properly

My apache config: DocumentRoot /var/www <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory ...
1
vote
0answers
34 views

Special nginx hotlink protection conversion from Apache .htaccess rule

I have the following anti-leeching rewrite rule in Apache, which i'd like to have in nginx. I see cookie or referrer rule examples. But none combining both, so I am not sure how to go about this. ...
1
vote
0answers
34 views

Use custom environment properties from Elastic Beanstalk for htaccess

Is there a way to use the custom environment property of elastic beanstalk in htaccess? I only want to rewrite http to https when not running locally so I thought I could do this by using the ...
1
vote
0answers
60 views

how to serve a single page application with openshift

I'm tryng to deploy a single page app on openshift. On openshift all the static contents have to be in wsgi/static dir, but I obviously want to serve my static index.html from the root. Every attempts ...
1
vote
0answers
13 views

Can mod_rewrite [P]roxy to an HTTPS url when the inbound request URL is HTTP?

I have a host (IIS6, running an implementation of mod_rewrite for windows, by a co called Micronovae. It works well) that has a site at http://some.host.com I also have another host (on Microsoft ...
1
vote
0answers
39 views

Apache rewrite rule for multiple named virtual hosts with a 'catch all' rule

I have a redirect apache server that I setup for about 30 domains. I want to have all requests get redirected to the main server except for 1 domain. Basically any domain coming to this server gets ...
1
vote
0answers
36 views

Apache2 mod_rewrite, handling the optional “/” at the end of a URL

I am attempting to host a single custom page to set as my homepage on my server. The real path to the page is example.com/start.html. However, I do not want this ugly URL in my homepage so I am ...
1
vote
0answers
175 views

Apache mod_rewrite - redirect all traffic to another domain, except in 5 folders

We are gradually moving a clients site to a new system & domain name. In the meantime we need both sites live - but sharing bits of the same domain. I have now pointed the primary domain to the ...
1
vote
0answers
100 views

Apache mod_proxy cuts off URLs at spaces

I have the following proxy rule on www.example.com/.htaccess RewriteEngine On RewriteRule ^(.*)$ http://www2.example.com/$1 [P] Requests for ...
1
vote
0answers
40 views

Apache Internal RE-WRITE to replace 301 redirect

I need to internally rewrite (due to partial CMS content restructure) as I currently have a permanent 301 redirect and it is killing SEO. I do not want the users browser to redirect or know about the ...
1
vote
0answers
576 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 ...
1
vote
0answers
134 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
33 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
197 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
33 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
176 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
123 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
96 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
2k 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
198 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
65 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
338 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
124 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
181 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
476 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
302 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
44 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
862 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
333 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
793 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
348 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
117 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
255 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
233 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
11 views

Apache2 Rewrite Rule - set a default directory

I'm trying to configure my Apache2. At the moment, when a user navigates to: http(s)://eamorr.com/whatever/ he is served pages from the directory /home/eamorr/eamorr.com/www/whatever (the "www" ...
0
votes
0answers
11 views

apache rewrite rule to strip subdirectory

I have a tomcat application with apache in front of it with proxypass. The application lives at http://host:8080/application and I the proxypass config means I can access it at http://host However, ...
0
votes
0answers
3 views

two parameters in RewriteMap dbd sql query

Is there any way to use %s twice in sql Query of DBD query? RewriteMap vhost "dbd:select path from www where url='%s'" this is working, but this not: RewriteMap vhost "dbd:select path from www ...
0
votes
0answers
12 views

apache2 mod_dbd and postgresql

I'm trying to rewrite url using dbd. Everything looks ok, except few things: It doesn't work It doesn't show any error (LogLevel Trace8) It doesn't show any connection to database (postgresql.log ...
0
votes
0answers
14 views

One session data for two domains

i have two different domains: domain1.com domain2.com I need to display a website from domain2.com on domain1.com. Now i use mod_proxy for this, like this: RewriteEngine on RewriteCond ...
0
votes
0answers
45 views

Mod - Rewrite / .htaccess Issue with Apache 2.4.12

The file structure is as follows Public files: /home/usrname/public_html CGI BIN, where the software is running: /home/usrname/public_html/cgi-bin Private files: /home/usrname/public_html/_private ...