Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 28th, 2012  |  syntax: None  |  size: 0.79 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. .htaccess in wordpress site issue
  2. <IfModule mod_rewrite.c>
  3. RewriteEngine On
  4. RewriteBase /blog/
  5. RewriteRule ^index.php$ - [L]
  6. RewriteCond %{REQUEST_FILENAME} !-f
  7. RewriteCond %{REQUEST_FILENAME} !-d
  8. RewriteRule . /blog/index.php [L]
  9. </IfModule>
  10.        
  11. <IfModule mod_rewrite.c>
  12.  
  13. RewriteEngine On
  14. RewriteBase /blog/
  15.  
  16. #If the file requested is index.php from the current folder(here: blog)
  17. #do not do anything
  18. RewriteRule ^index.php$ - [L]
  19.  
  20. #if other requests are not regular files or directories,
  21. #redirect it to /blog/index.php
  22. RewriteCond %{REQUEST_FILENAME} !-f
  23. RewriteCond %{REQUEST_FILENAME} !-d
  24. RewriteRule . /blog/index.php [L]
  25.  
  26. </IfModule>
  27.        
  28. RewriteCond %{REQUEST_FILENAME} !-l
  29.        
  30. RewriteEngine on
  31. RewriteBase /
  32.  
  33. RewriteCond %{HTTP_HOST} !^www. [NC]
  34. RewriteRule ^(.*)$ www.mysite.com/$1 [L,R=301]