İptal Edildi

Apache mod rewrite

Apache url rewrite works in htaccess but not in [url removed, login to view]

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/[url removed, login to view]

Successful bidder will get an exact copy of my [url removed, login to view] 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/[url removed, login to view]

needs to be rewritten to:

/[url removed, login to view]

The following rewrite for this works in an htacces file but not in the [url removed, login to view]:

RewriteEngine On

RewriteRule ^[^/]+/faves/([^/]+)/([^/]+).html$ [url removed, login to view]$1 [L]

RewriteRule ^faves/([^/]+)/([^/]+).html$ [url removed, login to view]$1 [L]

Here it is in the [url removed, login to view]

<VirtualHost [url removed, login to view]: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$ [url removed, login to view]$1 [L]

RewriteRule ^faves/([^/]+)/([^/]+).html$ [url removed, login to view]$1 [L]

</IfModule>

</VirtualHost>

------ COMMENT:-----

You must use

RewriteRule ^/[^/]+/faves/([^/]+)/([^/]+).html$ /[url removed, login to view]$1 [L]

RewriteRule ^/faves/([^/]+)/([^/]+).html$ /[url removed, login to view]$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 [url removed, login to view], and it works:

<VirtualHost [url removed, login to view]: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 !^([url removed, login to view]|images|[url removed, login to view])

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

</IfModule>

</VirtualHost>

------ COMMENT:-----

> but no luck

What can you find in your rewriteLog?

You can start logging with

RewriteLog logs/[url removed, login to view]

RewriteLogLevel 5

------ COMMENT:-----

It's just getting passed through:

[url removed, login to view] - - [06/Nov/2006:08:11:00 -0500] [***.com/sid#9504f74][rid#95f372c/initial] (2) init rewrite engine with requested uri /Dryden-Mitchell/faves/465/[url removed, login to view]

[url removed, login to view] - - [06/Nov/2006:08:11:00 -0500] [***.com/sid#9504f74][rid#95f372c/initial] (1) pass through /Dryden-Mitchell/faves/465/[url removed, login to view]

<VirtualHost [url removed, login to view]: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 /[url removed, login to view]

RewriteLog /var/log/httpd/[url removed, login to view]

RewriteLogLevel 5

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteRule ^/[^/]+/faves/([^/]+)/([^/]+).html$ /[url removed, login to view]$1 [L]

RewriteRule ^/faves/([^/]+)/([^/]+).html$ /[url removed, login to view]$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.

Beceriler: Linux, Sistem Yöneticisi

Daha fazlasını görün: match problem, html 5 pattern, getting images, 404 works, work logs, linux find, sid m, robots, rewrite, nelson, log post, leading , keith, fedora, context , checking email, Apache server , apache php, tried, 404 htacces, htaccess apache, htaccess problem, basic rule email, apache htaccess working, rewrite rule

İşveren Hakkında:
( 2 değerlendirme ) Washington, United States

Proje NO: #104595

10 freelancer bu iş için ortalamada 61$ teklif veriyor

codetrance

We've more than 5 years experience with Linux/BSD administration and security. We can do this job in a very professional manner for you. We're looking forwards to work with you on this project. Thank you.

in 0 gün içinde50$ USD
(104 Değerlendirme)
6.0
sohaileo

I'm a RHCE (verfication # 804006019622746), having good knowledge on mod_rewrite, I can help you in this. Regards,

in 2 gün içinde100$ USD
(95 Değerlendirme)
5.4
unixadmin

Hello I can help you with this.

in 2 gün içinde70$ USD
(33 Değerlendirme)
4.7
Tiemen

Happy to help you out straight away. Please see PM for more details.

in 0 gün içinde50$ USD
(8 Değerlendirme)
3.9
LanceGuru

Hi, Please check PMB. Thank You.

in 2 gün içinde75$ USD
(2 Değerlendirme)
3.2
unixworld

look pm box

in 3 gün içinde50$ USD
(1 Değerlendirme)
2.8
immi1979

Hi Please check the following dynamic website... [url removed, login to view] I am performing URL rewriting on this. Re-written URLs are here [url removed, login to view] R Daha fazlası

in 2 gün içinde100$ USD
(0 Değerlendirme)
0.0
anto1ne

I cna fix this for you in no time.

in 0 gün içinde50$ USD
(0 Değerlendirme)
0.0
eIndian

Hi, I can do this for you. Thanks and Regards, Pankaj Agarwal

1 gün içinde 30$ USD
(0 Değerlendirme)
0.0
Vasm

Details are in the PM.

in 5 gün içinde30$ USD
(0 Değerlendirme)
1.0