- domain.com/pagestest/test.html
domain.com/test.html?
remove subdirectory via htaccess
-
- New to forums
- Posts: 13
- https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
- Joined: Wed Aug 07, 2013 12:14 pm
- Location: Canada
- Contact:
remove subdirectory via htaccess
What would be the apache rewrite for say, domain.com/other/pagestest/test.html to
SG-Servers.com
#RIPSingleCoreWindows
#RIPSingleCoreWindows
Re: remove subdirectory via htaccess
Code: Select all
# This allows you to redirect index.html to a specific subfolder
Redirect /index.html http://example.com/newdirectory/
# Redirect old file path to new file path
Redirect /olddirectory/oldfile.html http://example.com/newdirectory/newfile.html
Not a NFO employee
Re: remove subdirectory via htaccess
Not trying to redirect but rather rewrite.
meaning people would type domain.com/test.html and it shows domain.com/test.html but the files are domain.com/other/pagetest/test.html
meaning people would type domain.com/test.html and it shows domain.com/test.html but the files are domain.com/other/pagetest/test.html
SG-Servers.com
#RIPSingleCoreWindows
#RIPSingleCoreWindows
Re: remove subdirectory via htaccess
In that case, can't you just edit the domain on NFOs control panel to point to a specific folder?
Not a NFO employee