Forum Moderators: phranque
I have a folder
/images/stuff/widget-type1/wiget1.htm + a few other .htm files not listed
/images/stuff/widget-type1/wiget2.htm
/images/stuff/widget-type1/wiget3.htm
/images/stuff/widget-type1/wiget4.htm
/images/stuff/widget-type1/wiget5.htm
I want to move the /images/stuff folder up one level
Is this correct? will this redirect all files in the stuff file to the new location
redirect 301 /images/stuff/ http://www.example.com.com/stuff
Then i install the .htacces file to
/images/.htaccees
Do i have it correct?
or does it matter that theses files were originally done so deep in th site?
[edited by: jdMorgan at 2:10 pm (utc) on Oct. 27, 2008]
[edit reason] example.com [/edit]
URLs are defined by "links", so on the pages of your site, you need to link to the URL that you want the user to see.
Now, having done that, a 301 redirect will cause the browser to request a new URL and the user will see that new URL.
If you want the user to see URL "X" while the content actually comes from location "Y" then you need a rewrite.
So, the question is, are you just changing the URL the user sees while leaving the content in the same physical place on the server, or are you actually moving the physical files up one level too, or something else?
That determines whether you need only a redirect from old URL to new URL, or whether you also need an internal rewrite to connect the new URL request back to the proper internal server location.