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
2 answers

AlisaMatch regex

I am trying to map a URL based on the filename it has to a fileshare directory. Here is the URL that i am using http://x.x.x.x/606547/abc.xyz.aaa/MOVIE/some.video.file-xxxxxxxx.nff?c=564378 (Where .nff is file extension). And here is the…
Suresh
  • 153
  • 2
  • 2
  • 9
0
votes
0 answers

ScriptAliasMatch not executing the expected script

I want to execute a perl script located in usr/lib/cgi-bin/script.pl when I get a GET request from client. The client request looks like this : http://abc.xyz.com/60447/some.co.uk/MAIN0000000094884995-201309111452330000.nff?u=55313841&c=i&s=n The…
Suresh
  • 153
  • 2
  • 2
  • 9
0
votes
2 answers

mod_alias subdirectory replacement

I am using RewriteMatch to redirect all traffic from subdir1 to subdir2, while keeping all other parts of the url the same. So for instance, http://www.mydomain.com/subdir1/ would redirect to http://www.mydomain.com/subdir2/ I am using this…
user35288
0
votes
1 answer

how to create alias folder on apache 2

I want to create an alias to a folder in Apache2(with centos 6 and PHP5.4). My idea is to migrate a project from one server to another. Example: htaccess: SetAlias /home/before.com/ /home/after.com/ PHP include( '/home/before.com/header.php'…
Olaf Erlandsen
  • 5,817
  • 9
  • 41
  • 73
0
votes
1 answer

Shorten URL using AliasMatch

I'm able to get the following configuration to work:- Alias /webdoc /data/apps/jenkins/jobs Order allow,deny Allow from all With this configuration, I can…
limc
  • 39,366
  • 20
  • 100
  • 145
0
votes
1 answer

.htaccess rewriterule and redirect 301 - 301 not working

I can't seem to get my 301 redirect working, mod_alias is enabled along with mod_rewrite. My rewrites work fine, but the 301s do not work. Basically what I am trying to do is setup "clean" URLs from dynamic php pages, which works fine... The other…
JCastell
  • 1,135
  • 1
  • 10
  • 11
0
votes
1 answer

Mod_JK, Tomcat & Apache Httpd "File not found" when using Alias

I've been trying to find a solution to what I think should be a very common use of Alias with Tomcat & Apache Httpd but I can't find it. I have Tomcat running my application server and I want to be able to use aliases to serve dynamic content. I…
Lostlinkpr
  • 1,453
  • 2
  • 12
  • 13
0
votes
1 answer

RedirectMatch on a cgi query not working

I'm trying to redirect URLs to a cgi script that match certain criteria. I.e. I don't want to redirect every query to that script, just those with a particular parameter. But I can't get it to work. Here's my Redirect: RedirectMatch…
Steve Thomas
  • 328
  • 2
  • 7
0
votes
2 answers

.htaccess 301 Redirect failure

I have the following code: # 301 Redirect Old File Redirect 301 www.website.com www.website.com/shop I want the site to automatically redirect anyone visiting www.website.com or website.com to www.website.com/shop, I can't get it to work, can…
Aaron Lee
  • 1,146
  • 3
  • 14
  • 29
0
votes
2 answers

Redirect (301) single page without mod_alias?

How to create pernament redirect (301) for single page in .htaccess without mod_alias ? f.e. http://www.example.com/oldpage --> http://www.elpmaxe.com/newpage
marverix
  • 7,184
  • 6
  • 38
  • 50
0
votes
1 answer

How to open application just by typing server name?

I have a server which is having several applications. lets say server is abc.corp.com it is having application xyz pqr mno etc. Today the applications are accessed as abc.corp.com/xyz abc.corp.com/pqr abc.corp.com/mno Out of these i want application…
sushil bharwani
  • 29,685
  • 30
  • 94
  • 128
0
votes
1 answer

mod_alias and mod_rewrite don't work together

I know there are many similar questions on here but unfortunately none of them solve the issue I am having. I am trying to work out why rewrite rules don't work when you also have an alias, below is an explanation of the situation that is causing…
AdrenalineJunky
  • 891
  • 11
  • 15
0
votes
1 answer

RewriteRule fails when Alias in Apache2

So, I wanted to organise my projects for better developing. I chose using this way to organise folders & files: www projects project1 web design_tests project2 web design_tests ... The…
elxordi
  • 476
  • 3
  • 11
-1
votes
1 answer

how to redirect with apache

I need to do a redirect a url to another with Apache, but only if url match with issues/[0-9]+. example: http://mysite.net/issues/44 to http://mysite.net/dashboard/issues/44 UPDATE: I put following lines (without #) in .htaccess but not work: #…
Miguel Borges
  • 7,549
  • 8
  • 39
  • 57
-2
votes
1 answer

Permanent url redirection using htaccess

I want to redirect an url from the form : /cgi-sys/suspendedpage.cgi/ to the form : http://www.domain.com/ I tried this but did not work Redirect 301 /cgi-sys/suspendedpage.cgi/ http://www.domain.com/ Is there a way to redirect it?
K22
  • 11
1 2 3
14
15