Quantcast
Viewing all articles
Browse latest Browse all 26542

Problem htaccess to web.config

Hey,

i have a big Problem i convert my htaccess to web.config but it doesent work.

Here is my Htaccess:

DirectoryIndex index.php
AddDefaultCharset utf8
RewriteEngine On

# Upload settings
php_value upload_max_filesize 250M
php_value post_max_size 250M
php_value max_execution_time 200
php_value max_input_time 200

# Mobile version
RewriteRule ^mobile(/?)+$ index.php?mobile=1 [L]
RewriteRule ^desktop(/?)+$ index.php?mobile=0 [L]

# Module rewrite
RewriteRule ^([a-z]+)(/?)+$ index.php?module=$1 [L]

# View file page
RewriteRule ^f/([a-zA-Z0-9]+)(/?)+$ index.php?module=view&id=$1 [L]

# Download with filename and extension support
RewriteRule ^download/([a-zA-Z0-9-=/+]+)_([a-f0-9]{32})/.{3,60}(/?)+$ index.php?module=download&token=$1&md5=$2 [L]
RewriteRule ^get/([a-zA-Z0-9]+)(/?)+$ index.php?module=get&id=$1 [L]

# My files, pagination
RewriteRule ^my/([0-9]+)(/?)+$ index.php?module=my&page=$1 [L]

# Deleting
RewriteRule ^delete/([a-zA-Z0-9]+)/([a-f0-9]{40})(/?)+$ index.php?module=delete&id=$1&key=$2 [L]

# Static pages
RewriteRule ^page/([a-zA-Z0-9-_]+)(/?)+$ index.php?module=pages&page=$1 [L]

I tried lots of Problem Solutions like 

http://www.iis.net/learn/application-frameworks/install-and-configure-php-applications-on-iis/translate-htaccess-content-to-iis-webconfig

But it doesnt work /:

I hope anyone can translate this code into a web.config :D

Thanks


Viewing all articles
Browse latest Browse all 26542

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>