Writing a HTACCESS file with multiple rules
- or -
Post a project like this3483
$$
- Posted:
- Proposals: 0
- Remote
- #580662
- Awarded
Description
Experience Level: Intermediate
General information for the website: Writing a HTACCESS file with multiple rules
Kind of development: Customization of existing website
Description of requirements/features: I need assistance writing a HTACCESS file with multiple rules. I have switched server architecture from IIS to Apache and are facing issues with the rewrites. The inbound URL's are formatted such that there are a variable number of parameters (one or two) - that must pass to the relevant url, for example:
domain.com/dashboard Rewrites to (index.php?param1=dashboard)
domain.com/dashboard/ Rewrites to (index.php?param1=dashboard)
domain.com/dashboard/account Rewrites to (index.php?param1=dashboard¶m2=account)
domain.com/dashboard/account/ Rewrites to (index.php?param1=dashboard¶m2=account)
note the trailing slashes
Ideally, I'd also like to exclude all media directories from the rewrite, as at present I am overriding this rule in each excluded directory.
htaccess attached.
Extra notes:
Kind of development: Customization of existing website
Description of requirements/features: I need assistance writing a HTACCESS file with multiple rules. I have switched server architecture from IIS to Apache and are facing issues with the rewrites. The inbound URL's are formatted such that there are a variable number of parameters (one or two) - that must pass to the relevant url, for example:
domain.com/dashboard Rewrites to (index.php?param1=dashboard)
domain.com/dashboard/ Rewrites to (index.php?param1=dashboard)
domain.com/dashboard/account Rewrites to (index.php?param1=dashboard¶m2=account)
domain.com/dashboard/account/ Rewrites to (index.php?param1=dashboard¶m2=account)
note the trailing slashes
Ideally, I'd also like to exclude all media directories from the rewrite, as at present I am overriding this rule in each excluded directory.
htaccess attached.
Extra notes:
Jack M.
100% (52)Projects Completed
66
Freelancers worked with
58
Projects awarded
38%
Last project
6 Oct 2015
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