- 74
- Posts
- 20
- Years
- Seen Sep 5, 2014
I am currently working on my new layout and site under an /immerse directory, but when everything is done, I am moving it to the root directory (/).
All of the links I have in this new layout do not use /immerse in their names so that when I move everything to the root directory, everything works (since they will not be in a folder anymore). Unfortunately, I need to be able to click the links while I am working on the layout, so I was wondering if there is a way for .htaccess to add to the beginning of all links /immerse when I use /, and then when I delete the file, all of the links will revert back to /.
For example, this is a link right now under the /immerse directory:
https://www.pokebeach.com/sets/fossil
I want it to change to this with .htaccess:
https://www.pokebeach.com/immerse/sets/fossil
Then when I delete the .htaccess and move the immerse folder files into the root directory, it reverts back to:
https://www.pokebeach.com/sets/fossil
All of the links I have in this new layout do not use /immerse in their names so that when I move everything to the root directory, everything works (since they will not be in a folder anymore). Unfortunately, I need to be able to click the links while I am working on the layout, so I was wondering if there is a way for .htaccess to add to the beginning of all links /immerse when I use /, and then when I delete the file, all of the links will revert back to /.
For example, this is a link right now under the /immerse directory:
https://www.pokebeach.com/sets/fossil
I want it to change to this with .htaccess:
https://www.pokebeach.com/immerse/sets/fossil
Then when I delete the .htaccess and move the immerse folder files into the root directory, it reverts back to:
https://www.pokebeach.com/sets/fossil