Convert .htaccess mod_rewrite rules to httpd.conf
$30-50 USD
I have an .htacccess file in a subdirectory of my web application, /help/. ? For security reasons, I can't use .htaccess so I need the rules to be modified to work in the [login to view URL] file instead.
## Deliverables
I have an .htaccess file designed to create SEO friendly URLs for a subdirectory that contains wiki software on my site. ? Unfortunately I can't use .htaccess files in my environment and I need the rules converted to run in [login to view URL] instead.
Here are the rules I need converted:
* * *
RewriteEngine on
#if this call related to adminstrators or non rewrite folders, you can add more here.
RewriteCond %{REQUEST_URI} ^/(.*(CFIDE|cfide|CFFormGateway|jrunscripts|railo-context|fckeditor)).*$
RewriteRule ^(.*)$ - [NC,L]
#dealing with flash / flex communication
RewriteCond %{REQUEST_URI} ^/(.*(flashservices|flex2gateway|flex-remoting)).*$
RewriteRule ^(.*)$ - [NC,L]
#Images, css, javascript and docs, add your own extensions if needed.
RewriteCond %{REQUEST_URI} \.(bmp|gif|jpe?g|png|css|js|txt|pdf|doc|xls|xml)$
RewriteRule ^(.*)$ - [NC,L]
#The ColdBox [login to view URL]{path_info} rules.
RewriteRule ^$ [login to view URL] [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ [login to view URL]%{REQUEST_URI} [QSA,L]
* * *
They need to work inside this Apache VirtualHost container without impacting any other rewrite rules:
* * *
Listen [login to view URL]
NameVirtualHost [login to view URL]
<VirtualHost [login to view URL]>
? ? ServerName [login to view URL]
? ? ServerAlias [login to view URL]
? ? ? ? ? DocumentRoot /var/www/pukka/prod
? ? ? ? ? <Directory /var/www/pukka/prod>
? ? ? ? ? ? ? ? ? Options -Indexes -Includes -ExecCGI +FollowSymLinks
? ? ? ? ? ? ? ? ? AllowOverride All
? ? ? ? ? ? ? ? ? Allow from all
? ? ? ? ? </Directory>
? ? ? ? ? # CDN
? ? ? ? ? Alias /gfx "/var/www/pukka/cdn/gfx"
? ? ? ? ? <Location /gfx>
? ? ? ? ? ? ExpiresActive On
? ? ? ? ? ? ExpiresDefault "access plus 6 months"
? ? ? ? ? </Location>
? ? ? ? ? # start mod_rewrite
? ? ? ? ? RewriteEngine On
? ? ? ? ? # canoncalize the /[login to view URL]'s to / for SEO purposes
? ? ? ? ? RewriteRule ^/[login to view URL]$ / [NC,R=permanent,L]
? ? ? ? ? RewriteRule ^/em360/[login to view URL]$ /em360/ [NC,R=permanent,L]
? ? ? ? ? # mod-rewrite to handle canonical issues
? ? ? ? ? RewriteCond %{HTTP_HOST} ? !^www\.site\.com [NC]
? ? ? ? ? RewriteCond %{HTTP_HOST} ? !^$
? ? ? ? ? RewriteRule ^/(.*) ? ? ? ? [login to view URL]$1 [L,R=permanent]
? ? ? ? ? # any internal pages we want to redirect besides home?
? ? ? ? ? RewriteRule ^/pmp(.*) /em360/[login to view URL] [NC,R=permanent,L]
? ? ? ? ? RewriteRule ? ^/pap/[login to view URL](.*) /pap/registration/[login to view URL]$1 [R=permanent,L]
? ? ? ? ? # protect non-web-accessible files
? ? ? ? ? RewriteRule ^/(dir1/|dir2/)?controller / [NC,R=permanent,L]
? ? ? ? ? # to stop annoying messages from CAST sql injection
? ? ? ? ? RewriteCond %{QUERY_STRING} ? ^.*(cast|declare|md5|benchmark).* [NC]
? ? ? ? ? RewriteRule . - [F]
? ? ? ? ? # disable dummy connections
? ? ? ? ? RewriteCond %(HTTP_USER_AGENT) ^.*internal\ dummy\ connection.* [NC]
? ? ? ? ? RewriteRule .* - [F,L]
</VirtualHost>
* * *
プロジェクト ID: 2851918
プロジェクトについて
5個の提案
リモートプロジェクト
アクティブ 15年前
お金を稼ぎたいですか?
Freelancerで入札する利点
この仕事に5人のフリーランサーが、平均$33 USDで入札しています
$17 USD 3日以内
4.8 (10 レビュー) $42.50 USD 3日以内
5.0 (2 レビュー) $25.50 USD 3日以内
5.0 (3 レビュー) $42.50 USD 3日以内
0.0 (0 レビュー)