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:

  1. dfgallery: Invalid cURL response. We expected ‘true’ from the url …
  2. WordPress in a subdirectory, urls like it was in root directory
  3. vBulletin: Non-www to www redirection [SOLVED]
  4. Apache case sensitive to case insensitive and Alias [SOLVED]
  5. mod_rewrite: RewriteCond, RewriteRule, QUERY_STRING, REQUEST_URI [GUIA RÁPIDA]

Leave a Reply

Paypal donate

Please help me keep this blog up by donating.

Por favor, ayúdame a continuar con el blog donando.