Find Jobs
Hire Freelancers

Apache mod rewrite

$30-100 USD

Annulé
Publié il y a plus de 17 ans

$30-100 USD

Payé lors de la livraison
Apache url rewrite works in htaccess but not in [login to view URL] The following is a detailed description of the problem taken from a post I made at a forum. servername, IP, email address blocked out with ***. Linux Fedora/php5/Apache1.3.37 Successful bidder will get an exact copy of my [login to view URL] file to work on because I can't have the Apache server continually restarted to test. Payment for successful outcome only. ---- this url: /Keith-Nelson/faves/15/[login to view URL] needs to be rewritten to: /[login to view URL] The following rewrite for this works in an htacces file but not in the [login to view URL]: RewriteEngine On RewriteRule ^[^/]+/faves/([^/]+)/([^/]+).html$ [login to view URL]$1 [L] RewriteRule ^faves/([^/]+)/([^/]+).html$ [login to view URL]$1 [L] Here it is in the [login to view URL] <VirtualHost [login to view URL]:80> ServerAdmin awarner@***.com DocumentRoot /sites/***.com/html ServerName ***.com ErrorLog /var/log/httpd/site3-error_log CustomLog /var/log/httpd/site3-access_log common <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^[^/]+/faves/([^/]+)/([^/]+).html$ [login to view URL]$1 [L] RewriteRule ^faves/([^/]+)/([^/]+).html$ [login to view URL]$1 [L] </IfModule> </VirtualHost> ------ COMMENT:----- You must use RewriteRule ^/[^/]+/faves/([^/]+)/([^/]+).html$ /[login to view URL]$1 [L] RewriteRule ^/faves/([^/]+)/([^/]+).html$ /[login to view URL]$1 [L] instead (note the leading slashes). ------ COMMENT:----- I tried it and restarted server but no luck. I'm going to try something really basic just to make sure rewrite is working ------ COMMENT:----- I tried this, which redirects everything to [login to view URL], and it works: <VirtualHost [login to view URL]:80> ServerAdmin awarner@***.com DocumentRoot /sites/***.com/html ServerName ***.com ErrorLog /var/log/httpd/site3-error_log CustomLog /var/log/httpd/site3-access_log common <IfModule mod_rewrite.c> RewriteEngine On RewriteCond $1 !^([login to view URL]|images|[login to view URL]) RewriteRule ^(.*)$ /[login to view URL]$1 [L] </IfModule> </VirtualHost> ------ COMMENT:----- > but no luck What can you find in your rewriteLog? You can start logging with RewriteLog logs/[login to view URL] RewriteLogLevel 5 ------ COMMENT:----- It's just getting passed through: [login to view URL] - - [06/Nov/2006:08:11:00 -0500] [***.com/sid#9504f74][rid#95f372c/initial] (2) init rewrite engine with requested uri /Dryden-Mitchell/faves/465/[login to view URL] [login to view URL] - - [06/Nov/2006:08:11:00 -0500] [***.com/sid#9504f74][rid#95f372c/initial] (1) pass through /Dryden-Mitchell/faves/465/[login to view URL] <VirtualHost [login to view URL]:80> ServerAdmin awarner@***.com DocumentRoot /sites/***.com/html ServerName ***.com ErrorLog /var/log/httpd/site3-error_log CustomLog /var/log/httpd/site3-access_log common #ErrorDocument 404 /[login to view URL] RewriteLog /var/log/httpd/[login to view URL] RewriteLogLevel 5 <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^/[^/]+/faves/([^/]+)/([^/]+).html$ /[login to view URL]$1 [L] RewriteRule ^/faves/([^/]+)/([^/]+).html$ /[login to view URL]$1 [L] </IfModule> </VirtualHost> ------ COMMENT:----- That means that the line 'RewriteEngine on' is present in per-server context, but the complete ruleset processing (checking the rule-pattern "applying pattern ...") is missing at all. So the RewriteRule directives are missing someway but we know that the virtual host did match, because if not we wouldn't find that log entry (RewriteLogLevel defined only for VirtualHost ******:80). Something other outside the RewriteRule directive must be wrong here.
N° de projet : 104595

Concernant le projet

9 propositions
Projet à distance
Actif à il y a 18 ans

Cherchez-vous à gagner de l'argent ?

Avantages de faire une offre sur Freelancer

Fixez votre budget et vos délais
Soyez payé pour votre travail
Surlignez votre proposition
Il est gratuit de s'inscrire et de faire des offres sur des travaux
9 freelances proposent en moyenne $62 USD pour ce travail
Avatar de l'utilisateur
I'm a RHCE (verfication # 804006019622746), having good knowledge on mod_rewrite, I can help you in this. Regards,
$100 USD en 2 jours
5,0 (96 commentaires)
5,5
5,5
Avatar de l'utilisateur
Hello I can help you with this.
$70 USD en 2 jours
4,9 (33 commentaires)
4,7
4,7
Avatar de l'utilisateur
Happy to help you out straight away. Please see PM for more details.
$50 USD en 0 jour
5,0 (8 commentaires)
3,9
3,9
Avatar de l'utilisateur
Hi, Please check PMB. Thank You.
$75 USD en 2 jours
5,0 (2 commentaires)
3,2
3,2
Avatar de l'utilisateur
look pm box
$50 USD en 3 jours
5,0 (1 commentaire)
2,8
2,8
Avatar de l'utilisateur
I cna fix this for you in no time.
$50 USD en 0 jour
0,0 (0 commentaires)
0,0
0,0
Avatar de l'utilisateur
Hi, I can do this for you. Thanks and Regards, Pankaj Agarwal
$30 USD en 1 jour
0,0 (0 commentaires)
0,0
0,0
Avatar de l'utilisateur
Details are in the PM.
$30 USD en 5 jours
0,0 (0 commentaires)
1,0
1,0

À propos du client

Drapeau de UNITED STATES
Washington, United States
5,0
2
Membre depuis sept. 29, 2006

Vérification du client

Merci ! Nous vous avons envoyé un lien par e-mail afin de réclamer votre crédit gratuit.
Une erreur a eu lieu lors de l'envoi de votre e-mail. Veuillez réessayer.
Utilisateurs enregistrés Total des travaux publiés
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Chargement de l'aperçu
Permission donnée pour la géolocalisation.
Votre session de connexion a expiré et vous avez été déconnecté. Veuillez vous connecter à nouveau.