Big surprise, htacess how to rewrite all invalid ~

Source: Internet
Author: User
Big surprise,,, htacess How to rewrite all invalid ~ ~
Http.ini, no problem.
[Isapi_rewrite]

# 3600 = 1 hour
Cacheclockrate 3600

Repeatlimit 32

# Protect Httpd.ini and Httpd.parse.errors files
# from accessing through HTTP

# Duoduo Rewrite rules

Rewritecond Host: (. *) stu80\.com$
Rewriterule (. *) http\://www\.youyax\.com [r,i]

Rewritecond Host: ^www\.stu80\.com$
Rewriterule (. *) http\://www\.youyax\.com [r,i]

Rewritecond Host: ^youyax\.com$
Rewriterule (. *) http\://www\.youyax\.com [r,i]

Rewriterule ^/forum/(index| List| content|admin| vote| message| Favor). *) $/forum/index\.php/$1 [L]
Rewriterule ^/m/(index| List| content|admin| vote| message| Favor). *) $/m/index\.php/$1 [L]


Because the Western Digital host is very expensive 240 yuan, so change space, instead of 70 Yuan Linux host
Rewriteengine on

#rewriteCond%{http_host} ^stu80\.com [NC]
#rewriteRule ^ (. *) $ http://www\.youyax\.com/$1 [r=301,l]

#rewriteCond%{http_host} ^youyax\.com [NC]
#rewriteRule ^ (. *) $ http://www\.youyax\.com/$1 [r=301,l]

Rewriterule forum/(index| List| content|admin| vote| message| Favor). *) $/forum/index.php/$1
#RewriteRule ^/m/(index| List| content|admin| vote| message| Favor). *) $/m/index\.php/$1 [L]


Tried a lot of combinations, is not successful ~
I think it might be a space problem.
Find out why


------Solution--------------------
sapi_rewrite3.1 Tutorials
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.