Advertisement
Guest User

Untitled

a guest
Mar 26th, 2019
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.23 KB | None | 0 0
  1. Options -MultiViews +FollowSymlinks -Indexes
  2.  
  3. # Google SEO workaround for search.php highlights:
  4. # Make this rule the first rewrite rule in your .htaccess!
  5. RewriteRule ^([^&]*)&(.*)$ https://www.espressoman.ro/forum/$1?$2 [L,QSA,R=301]
  6.  
  7. # Some hosts require RewriteBase to make RewriteRules work.
  8. RewriteBase /forum/
  9.  
  10. # Google SEO workaround for search.php highlights:
  11. # Make this rule the first rewrite rule in your .htaccess!
  12. RewriteRule ^([^&]*)&(.*)$ http://www.espressoman.ro/forum/$1?$2 [L,QSA,R=301]
  13.  
  14. #
  15. # If mod_security is enabled, attempt to disable it.
  16. # - Note, this will work on the majority of hosts but on
  17. # MediaTemple, it is known to cause random Internal Server
  18. # errors. For MediaTemple, please remove the block below
  19. #
  20. <IfModule mod_security.c>
  21. # Turn off mod_security filtering.
  22. SecFilterEngine Off
  23.  
  24. # The below probably isn't needed, but better safe than sorry.
  25. SecFilterScanPOST Off
  26. </IfModule>
  27.  
  28. #
  29. # MyBB "search engine friendly" URL rewrites
  30. # - Note, for these to work with MyBB please make sure you have
  31. # the setting enabled in the Admin CP and you have this file
  32. # named .htaccess
  33. #
  34. <IfModule mod_rewrite.c>
  35. RewriteEngine on
  36. #RewriteCond %{HTTP:X-Forwarded-Proto} !https
  37. RewriteCond %{HTTPS} off
  38. RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  39. RewriteRule ^forum-([0-9]+)\.html$ forumdisplay.php?fid=$1 [L,QSA]
  40. RewriteRule ^forum-([0-9]+)-page-([0-9]+)\.html$ forumdisplay.php?fid=$1&page=$2 [L,QSA]
  41.  
  42. RewriteRule ^thread-([0-9]+)\.html$ showthread.php?tid=$1 [L,QSA]
  43. RewriteRule ^thread-([0-9]+)-page-([0-9]+)\.html$ showthread.php?tid=$1&page=$2 [L,QSA]
  44. RewriteRule ^thread-([0-9]+)-lastpost\.html$ showthread.php?tid=$1&action=lastpost [L,QSA]
  45. RewriteRule ^thread-([0-9]+)-nextnewest\.html$ showthread.php?tid=$1&action=nextnewest [L,QSA]
  46. RewriteRule ^thread-([0-9]+)-nextoldest\.html$ showthread.php?tid=$1&action=nextoldest [L,QSA]
  47. RewriteRule ^thread-([0-9]+)-newpost\.html$ showthread.php?tid=$1&action=newpost [L,QSA]
  48. RewriteRule ^thread-([0-9]+)-post-([0-9]+)\.html$ showthread.php?tid=$1&pid=$2 [L,QSA]
  49.  
  50. RewriteRule ^post-([0-9]+)\.html$ showthread.php?pid=$1 [L,QSA]
  51.  
  52. RewriteRule ^announcement-([0-9]+)\.html$ announcements.php?aid=$1 [L,QSA]
  53.  
  54. RewriteRule ^user-([0-9]+)\.html$ member.php?action=profile&uid=$1 [L,QSA]
  55.  
  56. RewriteRule ^calendar-([0-9]+)\.html$ calendar.php?calendar=$1 [L,QSA]
  57. RewriteRule ^calendar-([0-9]+)-year-([0-9]+)\.html$ calendar.php?action=yearview&calendar=$1&year=$2 [L,QSA]
  58. RewriteRule ^calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)\.html$ calendar.php?calendar=$1&year=$2&month=$3 [L,QSA]
  59. RewriteRule ^calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)-day-([0-9]+)\.html$ calendar.php?action=dayview&calendar=$1&year=$2&month=$3&day=$4 [L,QSA]
  60. RewriteRule ^calendar-([0-9]+)-week-(n?[0-9]+)\.html$ calendar.php?action=weekview&calendar=$1&week=$2 [L,QSA]
  61.  
  62. RewriteRule ^event-([0-9]+)\.html$ calendar.php?action=event&eid=$1 [L,QSA]
  63.  
  64. <IfModule mod_env.c>
  65. SetEnv SEO_SUPPORT 1
  66. </IfModule>
  67. </IfModule>
  68.  
  69. #
  70. # If Apache is compiled with built in mod_deflade/GZIP support
  71. # then GZIP Javascript, CSS, HTML and XML so they're sent to
  72. # the client faster.
  73. #
  74. <IfModule mod_deflate.c>
  75. AddOutputFilterByType DEFLATE application/javascript text/css text/html text/xml
  76. </IfModule>
  77. RewriteEngine on
  78.  
  79. # Some hosts require RewriteBase to make RewriteRules work.
  80. RewriteBase /forum/
  81.  
  82. # Google SEO Sitemap:
  83. RewriteRule ^sitemap\-([^./]+)\.xml$ misc.php?google_seo_sitemap=$1 [L,QSA,NC]
  84.  
  85. # Google SEO URL Forums:
  86. RewriteRule ^Forum\-([^./]+)$ forumdisplay.php?google_seo_forum=$1 [L,QSA,NC]
  87.  
  88. # Google SEO URL Threads:
  89. RewriteRule ^Thread\-([^./]+)$ showthread.php?google_seo_thread=$1 [L,QSA,NC]
  90.  
  91. # Google SEO URL Announcements:
  92. RewriteRule ^Announcement\-([^./]+)$ announcements.php?google_seo_announcement=$1 [L,QSA,NC]
  93.  
  94. # Google SEO URL Users:
  95. RewriteRule ^User\-([^./]+)$ member.php?action=profile&google_seo_user=$1 [L,QSA,NC]
  96.  
  97. # Google SEO URL Calendars:
  98. RewriteRule ^Calendar\-([^./]+)$ calendar.php?google_seo_calendar=$1 [L,QSA,NC]
  99.  
  100. # Google SEO URL Events:
  101. RewriteRule ^Event\-([^./]+)$ calendar.php?action=event&google_seo_event=$1 [L,QSA,NC]
  102.  
  103. # Google SEO 404:
  104. ErrorDocument 404 /forum/misc.php?google_seo_error=404
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement