Find Jobs
Hire Freelancers

assist with htaccess file's rewrite/redirect rules

$30-250 AUD

Anulowano
Opublikowano ponad 11 lat temu

$30-250 AUD

Płatne przy odbiorze
Hello, Below is a htaccess mod_rewrite issue explained, that I haven't been able to resolve. I think there is a 5 minute fix, I hope, but am unsure, so please ask questions should the issue be unclear. I have a website with a lot of sub-domains and I would like a rule(s) for my 'htaccess file' so that All of the following related links for each sub-domain redirects to the sub-domains' respective Index file. In other words, all of the following should redirect to: [login to view URL] 1. [login to view URL] 2. [login to view URL] 3. [login to view URL] 4. [login to view URL] Just like all of the following links on another sub-domain should redirect to: [login to view URL] 1. [login to view URL] 2. [login to view URL] 3. [login to view URL] 4. [login to view URL] Here is a copy of my htaccess file, which is where I am 90% sure the problem lies: RewriteEngine On RewriteCond %{HTTP_HOST} ^[login to view URL] [NC] RewriteRule ^(.*)$ [login to view URL]$1 [R=301,L] ErrorDocument 404 / The sub-domains' Index file contains the following PHP code, as I store and manage the redirect-to links in a database: $domain = $_SERVER['SERVER_NAME']; require_once '[login to view URL]'; $domain = mysql_real_escape_string($domain); $sql = " SELECT redirect FROM redirects WHERE domain='$domain' "; $result = mysql_query( $sql ) or die(mysql_error()); $row = mysql_fetch_row($result); if( $redirect = $row[0] ) { echo '<meta http-equiv="REFRESH" content="0;URL=http://'.$redirect.'">'; } else { echo '<meta http-equiv="REFRESH" content="0;URL=[login to view URL]">'; } Payment will be made upfront into escrow and released upon the implementation of a working solution. Any questions, please ask before bidding. Thank you :-)
Identyfikator projektu: 2461392

Informację o projekcie

3 ofert
Zdalny projekt
Aktywny 12 lat temu

Szukasz sposobu na zarobienie pieniędzy?

Korzyści ze składania ofert na Freelancer.com

Ustal budżet i ramy czasowe
Otrzymuj wynagrodzenie za swoją pracę
Przedstaw swoją propozycję
Rejestracja i składanie ofert jest bezpłatne
3 freelancerzy składają oferty o średniej wysokości $30 AUD dla tej pracy
Awatar Użytkownika
Hello,sir. I can help you. Let's start.
$30 AUD w 0 dzień
5,0 (30 opinii)
4,7
4,7
Awatar Użytkownika
Hello! I can help you out!
$30 AUD w 0 dzień
4,9 (9 opinii)
4,1
4,1
Awatar Użytkownika
please see pm. Thanks.
$30 AUD w 0 dzień
5,0 (1 opinia)
1,2
1,2

O kliencie

Flaga AUSTRALIA
Melbourne, Australia
5,0
75
Zweryfikowana metoda płatności
Członek od mar 11, 2005

Weryfikacja Klienta

Dziękujemy! Przesłaliśmy Ci e-mailem link do odebrania darmowego bonusu.
Coś poszło nie tak podczas wysyłania wiadomości e-mail. Proszę spróbować ponownie.
Zarejestrowani Użytkownicy Całkowita Liczba Opublikowanych Projektów
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Wczytywanie podglądu
Udzielono pozwolenia na Geolokalizację.
Twoja sesja logowania wygasła i zostałeś wylogowany. Proszę, zalogować się ponownie.