httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Soultanian <msoul...@csulb.edu>
Subject [users@httpd] SOLVED! - Having problems with a redirect
Date Mon, 17 May 2010 18:57:57 GMT
Well, I tried the following:

Redirect 301 /~music "http://www.csulb.edu/music"

And it worked.  So I guess problem solved!

thanks,
Mike

On 5/17/2010 11:31 AM, Mike Soultanian wrote:
> Hello,
> I'm trying to redirect everyone that goes to http://www.csulb.edu/~music
> over to http://www.csulb.edu/depts/music (no tilde) using the following
> .htacess file:
>
> Options +FollowSymLinks
> RewriteEngine on
> RewriteRule ^(.*)$ http://www.csulb.edu/music/$1 [L,NC,R=301]
>
> I'm having mild success.
>
> This works:
>
> http://www.csulb.edu/~music/
> http://www.csulb.edu/~music/index.html
> http://www.csulb.edu/~music/keyboard/keyboard.html
> and so on...
>
>
> However, this doesn't work:
>
> http://www.csulb.edu/~music
>
> which takes me to:
>
> http://www.csulb.edu/depts/music//home/aa/music/htdocs
>
> instead of taking me to:
>
> http://www.csulb.edu/depts/music
>
>
> Any ideas on how to fix that? I left the .htaccess up there so you can
> try it out.
>
> Thanks!
> Mike
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message