Jump to content

Recommended Posts

i frequently use .htaccess files for some basics but i am very newbish in my understanding. 

 

what i am trying to do is setup permanent redirects for old file names to new ones on the same server/domain.  the line below typically works for me but i cannot get any success on a particular client's account.  it is a GoDaddy shared hosting Linux server.  has apache and other .htaccess directives are working.  i have been researching online about this and so have tried numerous alternatives such as redirectmatch-es and RewriteRule-s.  not that i understand the aforementioned well but read an article on two that explained things fairly well and so gave it a shot but no luck.

 

i did find a bunch of statements alluding to some changes GoDaddy made that require the inclusion of subfolders in the command but had no success with it.

 

this domain, mysite.com, is setup as a subdomain (in 'subfolder') under what GoDaddy is calling the 'root' directory.

Redirect /subfolder/old_file.php      http://mysite.com/subfolder/new_file.php
Edited by BuildMyWeb
Link to comment
https://forums.phpfreaks.com/topic/297411-htaccess-redirect-301-problems/
Share on other sites

Is mod_alias enabled? Do you have access to the redirect logs? Do you have any errors?

 

i searched a phpinfo() file for mod_alias but didnt find it.  where can i see if this is enabled?

 

dont know where to find redirect logs?  i looked in my cpanel but not there.

 

no onscreen errors.  other than the 404.  i AM being directed to my custom 404 page which leads me to believe .htaccess is working, in general.

im assuming i might need true root access to check if mod_alias is enabled after reading this: http://serverfault.com/questions/568267/how-to-check-if-mod-alias-is-enabled

 

but godaddy does not allow for that in their shared hosting plans, i dont believe.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.