Forum Moderators: phranque

Message Too Old, No Replies

Is it possible to set a 301 redirect without mod rewrite?

         

zwhalen

2:38 pm on Jul 18, 2006 (gmt 0)

10+ Year Member



Hello,

I'm working on a site wherein I don't have access to any mod_rewrite, but I still need to move a few files around. (I'm on an Apache server, but certain features are disabled for users in my position.)

Obviously, I want to indicate the file's new location in the most efficient and search-friendly manner possible, but I can't think of any way to do this without a meta refresh or javascript -- which I know can cause problems and aren't exactly efficient.

Also complicating matters is the fact that I'm not in the root directory, and I don't have PHP. I do have Perl, however, but anyway I can't figure out how to send a header with 301 information before the page loads.

Anything come to mind?

Many thanks . . .

zCat

3:07 pm on Jul 18, 2006 (gmt 0)

10+ Year Member



Do you have mod_alias?

zwhalen

3:53 pm on Jul 18, 2006 (gmt 0)

10+ Year Member



Well it appears that I posted too soon. It turns out that I do have access to mod_rewrite, though I was told otherwise. I suppose if the admin's don't know and I don't alert them by asking about it, I can always ask for forgiveness later if I get in trouble :)

jdMorgan

4:24 pm on Jul 18, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



LOL! :)

If they've allowed you to execute mod_rewrite in .htaccess by providing sufficent AllowOverride Options FileInfo settings, then go for it!

Otherwise, as zCat noted, Redirect and RedirectMatch in mod_alias may work just as well.

Jim