Convert .htaccess mod_rewrite rules to httpd.conf
$30-50 USD
Veröffentlicht vor mehr als 14 Jahren
$30-50 USD
Bezahlt bei Lieferung
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>
* * *
Projekt-ID: 2851918
Über das Projekt
5 Vorschläge
Remote Projekt
Aktiv vor 15 Jahren
Möchten Sie etwas Geld verdienen?
Vorteile einer Ausschreibung auf Freelancer
Legen Sie Ihr Budget und Ihren Zeitrahmen fest
Für Ihre Arbeit bezahlt werden
Skizzieren Sie Ihren Vorschlag
Sie können sich kostenlos anmelden und auf Aufträge bieten
5 Freelancer bieten im Durchschnitt $33 USD für diesen Auftrag
$17 USD in 3 Tagen
4,8 (10 Bewertungen) $42,50 USD in 3 Tagen
5,0 (2 Bewertungen) $25,50 USD in 3 Tagen
5,0 (3 Bewertungen) $42,50 USD in 3 Tagen
0,0 (0 Bewertungen)