Fix .Htaccess File for WWW Resolve

已完成 已发布的 7 年前 货到付款
已完成 货到付款

I need you to add a WWW resolve redirect to my .htaccess file.

I want any requests to "[url removed, login to view]" to redirect to: "[url removed, login to view]"

I've done that before, but this time there is extra stuff: mod-rewrite conditions in the mix and I can't seem to combine the two.

I have this working:

[url removed, login to view] -> Redirects to: [url removed, login to view]

[url removed, login to view] -> Redirects to: [url removed, login to view]

But, it does not affect it if the page exists already.

So, if page "[url removed, login to view]" exists in file system, then the redirect will skipped, and it will go straight to the actual file "[url removed, login to view]"

This all works great!!! But now I just need to keep it as it is, but add a redirect from non-WWW ---- to ---- WWW

First person to get it working will get paid. I don't have time to hire someone and have them fail, then have to hire another freelancer, etc... It should be really easy for someone who is expert in url rewriting.

Here's my current code:

RewriteEngine on

RewriteBase /

AddType application/x-httpd-php5 .html .htm

RewriteCond %{REQUEST_FILENAME} -f [OR]

RewriteCond %{REQUEST_FILENAME} -d

RewriteRule (.*) - [L]

RewriteRule ^(.*)$ [url removed, login to view]$1 [QSA,L]

Redirect 301 /admin /[url removed, login to view]

Please tell me if you have the answer, then I will private message you so I can try your solution. If it works I'll pay you $10.

阿帕奇 Linux PHP

项目ID: #11168795

关于项目

15个方案 远程项目 活跃的7 年前

授予:

vietcuongus2290

Hello U can try it RewriteCond %{HTTP_HOST} ^[login to view URL] [NC] RewriteRule ^(.*)$ [login to view URL]$1 [L,R=301] Thank you!

$15 USD 在1天内
(6条评论)
3.2

有15名威客正在参与此工作的竞标,均价$28/小时

dkokmadis

Hello from Greece, Can you send me your htaccess ? Regards, Dimitris

$15USD 在1天里
(267条评论)
6.4
bhaskarmandal

Hi, I am 5 years experienced web developer. I understand your point. I can complete this project within two hours . Please check my profile for my work quality . Thanks, Bhaskar Mandal

$25 USD 在0天内
(72条评论)
6.0
mithusamsukha

Hello Kindly provide me the following 1)SSH root details 2) FTP details 3) C-panel details Answer me with the above , so i can do it very soon. I can do this very easily even i have done this many a times. 更多

$46USD 在1天里
(58条评论)
6.0
pks11

A proposal has not yet been provided

$20 USD 在0天内
(31条评论)
4.6
wareva

Interested in your offer Extensive experience in web development Ask any questions Regards Walder Reyes

$25USD 在1天里
(12条评论)
3.7
eriks1

I have the drive and energy that others don't, when 5pm rolls around and everyone else leaves, I stay and keep working g until i feel i have completed my set goals.

$15USD 在1天里
(0条评论)
0.0