Chrisj Posted September 30, 2019 Share Posted September 30, 2019 In the php web script, when a user is redirected to faq, for example, the web script displays website.net/faqfolder in the web browser field Can it be modified to just display website.net/faq? If so, how? Quote Link to comment https://forums.phpfreaks.com/topic/309303-how-to-change-a-folder-name-that-appears-in-the-web-browser-field/ Share on other sites More sharing options...
gw1500se Posted September 30, 2019 Share Posted September 30, 2019 You need to post your code. Off hand you simply change the URL you are using to access that page. Quote Link to comment https://forums.phpfreaks.com/topic/309303-how-to-change-a-folder-name-that-appears-in-the-web-browser-field/#findComment-1570102 Share on other sites More sharing options...
requinix Posted September 30, 2019 Share Posted September 30, 2019 You say "folder" which makes me think it's an actual folder. You could just... rename the folder. Whatever method you end up using, please set up your web server to do a 301 permanent redirect from the old /faqfolder to the new /faq. Quote Link to comment https://forums.phpfreaks.com/topic/309303-how-to-change-a-folder-name-that-appears-in-the-web-browser-field/#findComment-1570111 Share on other sites More sharing options...
Chrisj Posted September 30, 2019 Author Share Posted September 30, 2019 Thanks for your reply. I'm sure the web script that I'm using would break if I renamd the file. I'm just wondering if it can appear in the browser field under a different name Quote Link to comment https://forums.phpfreaks.com/topic/309303-how-to-change-a-folder-name-that-appears-in-the-web-browser-field/#findComment-1570135 Share on other sites More sharing options...
requinix Posted October 1, 2019 Share Posted October 1, 2019 Have you considered fixing the script so it doesn't break? Quote Link to comment https://forums.phpfreaks.com/topic/309303-how-to-change-a-folder-name-that-appears-in-the-web-browser-field/#findComment-1570141 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.