Advertisement
Guest User

Untitled

a guest
Dec 21st, 2014
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. // user faken count in der config ändern.
  2. // empfangshalle in der config ändern.
  3.  
  4. // löschen.
  5. if (substr($_SERVER['HTTP_HOST'], 0, 4) !== 'www.') {
  6. header("HTTP/1.1 301 Moved Permanently");
  7. header('Location: '.$protocol.'www.'.$_SERVER['HTTP_HOST'].'/'.$route);
  8. exit;
  9. }
  10.  
  11.  
  12. // web.config
  13. <?xml version="1.0" encoding="UTF-8"?>
  14. <configuration>
  15. <system.webServer>
  16. <rewrite>
  17. <rules>
  18. <rule name="Rewrite signature" stopProcessing="true">
  19. <match url="^signature/([0-9a-z.:]+)" />
  20. <action type="Rewrite" url="signature.php?user={R:1}" />
  21. </rule>
  22. <rule name="Imported Rule 1">
  23. <match url="^(.*)" ignoreCase="false" />
  24. <conditions logicalGrouping="MatchAll">
  25. <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
  26. <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
  27. </conditions>
  28. <action type="Rewrite" url="index.php?page={R:1}" />
  29. </rule>
  30. </rules>
  31. </rewrite>
  32. </system.webServer>
  33. </configuration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement