Find Jobs
Hire Freelancers

assist with htaccess file's rewrite/redirect rules

$30-250 AUD

Cancelado
Publicado hace más de 11 años

$30-250 AUD

Pagado a la entrega
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 :-)
ID del proyecto: 2461392

Información sobre el proyecto

3 propuestas
Proyecto remoto
Activo hace 12 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
3 freelancers están ofertando un promedio de $30 AUD por este trabajo
Avatar del usuario
Hello,sir. I can help you. Let's start.
$30 AUD en 0 día
5,0 (30 comentarios)
4,7
4,7
Avatar del usuario
Hello! I can help you out!
$30 AUD en 0 día
4,9 (9 comentarios)
4,1
4,1
Avatar del usuario
please see pm. Thanks.
$30 AUD en 0 día
5,0 (1 comentario)
1,2
1,2

Sobre este cliente

Bandera de AUSTRALIA
Melbourne, Australia
5,0
75
Forma de pago verificada
Miembro desde mar 11, 2005

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.