Write me a 301 htaccess redirect rule (Linux server)
- or -
Post a project like this917
£20(approx. $25)
- Posted:
- Proposals: 5
- Remote
- #3413698
- Completed
Description
Experience Level: Entry
Write me a 301 redirect htaccess rule
Here is the pattern:
Redirect from https://www.mywebsite.com/foldername1/foldername2/nameofthefile.php
Redirect to https://www.mywebsite.com/foldername3/nameofthefile/
So the website address is staying the same.
The file name is different each time and I don't want to create 2500 htaccess rules, so that needs regex.
The folder structure is changing - everything in /foldername1/foldername2/ will go into /foldername3/
and the files will all lose their 'php' extension which is replaced with a backslash /
Here is the pattern:
Redirect from https://www.mywebsite.com/foldername1/foldername2/nameofthefile.php
Redirect to https://www.mywebsite.com/foldername3/nameofthefile/
So the website address is staying the same.
The file name is different each time and I don't want to create 2500 htaccess rules, so that needs regex.
The folder structure is changing - everything in /foldername1/foldername2/ will go into /foldername3/
and the files will all lose their 'php' extension which is replaced with a backslash /
Jen W.
100% (41)Projects Completed
36
Freelancers worked with
28
Projects awarded
50%
Last project
12 Feb 2024
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies