Questions tagged [mod-alias]

Apache module providing namespace configuration & redirection.

mod_alias is an Apache HTTP Server module that provides mechanisms to map URL paths to directories on the filesystem or external (browser-based) redirections to other URLs.

211 questions
0
votes
3 answers

How can I redirect directory using htaccess including files with spaces in the names

I am dealing with a situation where someone has handed me a bunch of old files on the server which already have a lot of incoming links directly to them (mostly pdf files). I now have the files organized but in a different directory. Before it was…
James
  • 1
  • 1
  • 1
0
votes
0 answers

Mapping a directory outside the docroot in apache 2.2

I working with a website with a structure much like the following: |-- module1 ||-- www |||-- js |||-- module1.php |-- module2 ||-- www ||| -- js ||| -- css |||-- module2.php |-- www ||-- js ||-- images The docroot points to /www and, /module1/www…
Gardner
  • 112
  • 12
0
votes
2 answers

Apache 2.4.7 Redirect Permanent Without Rewrite Rules

I just switched to a new server running 2.4.7 from 2.2.x and now i'm having a few issues. I resolved most of them that I ran across so far except this permanent redirect issue. Here is the code: ServerName example.com …
Hatem Jaber
  • 2,341
  • 2
  • 22
  • 38
0
votes
1 answer

Apache php httpd-xampp.conf alias not working

I have httpd-xampp.conf with ... Alias /examples "D:/xampp/htdocs/examples/" Options Indexes FollowSymLinks Includes ExecCGI AllowOverride All Order allow,deny …
Tuan Hoang Anh
  • 994
  • 12
  • 31
0
votes
1 answer

.htaccess Not Caching an Alias Folder's Images

So, since I host my blog on the same server as my site, I figured I would create an Alias so I could pull in my portfolio. Alias /port-images/ /the/real/location/wp-content/uploads/ In both my blog and the site I am pulling the images into contain…
Kevin
  • 2,684
  • 6
  • 35
  • 64
0
votes
1 answer

Apache dynamic subfolders

I need to setup Apache so it deals with 2 different disk locations and maps different sites dinamically based on the subfolder on the URLs: http://localhost1/site1.com/ http://localhost1/site2.com/ http://localhost2/site3.com/ ... That will map…
0
votes
0 answers

Aliassing into a directory that uses mod_rewrite: 404 not found?

When I Alias into a directory with a .htaccess file with RewriteRules, I get a "404 Page Not Found" message. In my vhost configuration I have the following: Alias /foo Options Indexes…
Andrejovich
  • 544
  • 2
  • 13
0
votes
1 answer

Apache URL redirection

I would like to set up an Apache redirect rule which will accept the following browser URL: 192.168.100.128/test and transform it into the following: http://192.168.100.128:9001/forms/frmservlet?config=testjpi I have had a look at the httpd.conf…
Huskie69
  • 795
  • 3
  • 11
  • 31
0
votes
1 answer

apache aliasmatch to to match files names from different urls to a same directory

Hi I am trying to write an AliasMatch rule to map number of different urls to a single directory location. The goal is to serve all the static content of the application from apache only. I have the static contents scattered all over the…
0
votes
1 answer

How can I get everything in alias rewritten from http://hostname/ to http://hostname/alias/?

I have FRAPI framework installed on the windows server in the intranet under apache alias. # Frontend Alias /api "D:/var/www/api_dev/public" # Backend Alias /api_admin "D:/var/www/api_dev/admin/public" The .htaccess file for admin part looks…
Artur Kedzior
  • 3,994
  • 1
  • 36
  • 58
0
votes
1 answer

Trying to Properly configure the mod alias in Apache

I'm running apache 2.2.24 on Max OS X 10.9.1. Currently, we have a network drive that we access all of our Git repos on at /Volumes/GitWebsites. I would like to configure Apache to serve our PHP based repos from that directory. So, localhost (or…
post.72
  • 333
  • 4
  • 14
0
votes
1 answer

Can mod_rewrite be used to find an older version of a file?

Say there are four files on a server which contain dates in the filename in some way: file_2014-01-20.txt file_2014-01-03.txt file_2014-01-02.txt file_2014-01-01.txt ...and the server receives a request for a dated file which doesn't…
brentonstrine
  • 21,694
  • 25
  • 74
  • 120
0
votes
2 answers

EasyPHP modules folder conflicts with Drupal

I installed EasyPHP and set up a Drupal installation and a virtual host, so that I could see my site at sitename.local in my browser. At first, it seemed like it was working, but it looked odd. The size of the text was different and certain page…
Aaron
  • 141
  • 5
0
votes
1 answer

PHP script in aliased directory mistakenly handled by WSGI when using mod_rewrite

all. So I'm running Apache 2.2. I have a single VirtualHost that's used for a Django application (by way of mod_wsgi) as well as a PHP one that lives in a subdirectory. Normally, this is no problem. You can just Alias /subdir /path/to/phpapp…
John
  • 88
  • 3
0
votes
2 answers

Issue with redirection of a folder with mod_alias

Another question following on from this thread. The only remaining item that I can't solve is that there is a listing for an now non-existent folder '/team/', but if I add this into my .htaccess file, it breaks all other .htaccess entries for files…
Martin S
  • 211
  • 1
  • 4
  • 18