A real case example: my .htaccess in /wordpress subdirectory
Might be helpful for people wanting to know how is a real .htaccess. This is the one I have in /wordpress:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^Wordpress/PhotoGallery$ photogallery/ RewriteRule ^PhotoGallery$ photogallery/ RewriteRule ^photoGallery$ photogallery/ RewriteRule ^photogallery$ photogallery/ RewriteRule ^photogallery/$ http://www.leccionespracticas.com/fotos/ RewriteBase /wordpress/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /wordpress/index.php [L] </IfModule> # END WordPress |
Related posts:
- dfgallery: Invalid cURL response. We expected ‘true’ from the url …
- WordPress in a subdirectory, urls like it was in root directory
- vBulletin: Non-www to www redirection [SOLVED]
- Apache case sensitive to case insensitive and Alias [SOLVED]
- mod_rewrite: RewriteCond, RewriteRule, QUERY_STRING, REQUEST_URI [GUIA RÁPIDA]