Modifying .htaccess for a simple rewrite / redirects
- or -
Post a project like this1642
$19/hr
- Posted:
- Proposals: 10
- Remote
- #2576691
- Awarded
Wordpress|Webflow|Shopify|Wix|CRM|PHP|Android|iOS|Bespoke|App|Zoho|Laravel|SEO|PPC|Social|React|Node|Flutter|React Native|Magento|PWA|Plugin|Chrome Extention
Mohali
Professional Writer, Logo Designing, WordPress, PHP, Custom Web Development and designing , Data Entry, Professional designers,
Bahawalpur
PPH TOP Website & App Developer✮LOGO & Graphic Designer✮Content Writer✮Translator
Dubai
326809988597716798692153556227480425295552888952294380431279853204458
Description
Experience Level: Intermediate
I have a website which has two language versions a) polish language using www.domain.pl and b) english version using www.domain.eu. The code is the same for both websites all the difference is language defines.
I need someone for a simple job to add a couple of lines to the .htaccess, in order to:
1) avoid index.php , index.html, etc
avoid http://www.domain.pl/index.php and redirect it to domain.pl
avoid http://www.domain.eu/index.php and redirect it to domain.eu
2) for some reson the website is accessible via fake/unwanted subdomains like:
whatever.domain.pl,
http://www.www.domain.pl,
ww2.domain.eu
blablala.domain.pl
etc.
I need it to be redirected to http://www.domain.pl/* or http://www.domain.eu/* if someone puts any string before domain.pl , domain.eu other than: www or any desired subdomain
3)
http://www.domain.pl/pl sets language to polish
http://www.domain.pl/en sets language to english
http://www.domain.eu/pl sets language to polish
http://www.domain.eu/en sets language to english
This is fine but once it sets the language I would like it to redirect to domain.pl and domain.eu
I think that for someone who is good at .htaccess / modrewrite it should take less than an hour to write.
I need someone for a simple job to add a couple of lines to the .htaccess, in order to:
1) avoid index.php , index.html, etc
avoid http://www.domain.pl/index.php and redirect it to domain.pl
avoid http://www.domain.eu/index.php and redirect it to domain.eu
2) for some reson the website is accessible via fake/unwanted subdomains like:
whatever.domain.pl,
http://www.www.domain.pl,
ww2.domain.eu
blablala.domain.pl
etc.
I need it to be redirected to http://www.domain.pl/* or http://www.domain.eu/* if someone puts any string before domain.pl , domain.eu other than: www or any desired subdomain
3)
http://www.domain.pl/pl sets language to polish
http://www.domain.pl/en sets language to english
http://www.domain.eu/pl sets language to polish
http://www.domain.eu/en sets language to english
This is fine but once it sets the language I would like it to redirect to domain.pl and domain.eu
I think that for someone who is good at .htaccess / modrewrite it should take less than an hour to write.
Wojciech P.
0% (0)Projects Completed
-
Freelancers worked with
-
Projects awarded
50%
Last project
14 May 2024
Poland
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