besoin d'aide pour corriger mon fichier .htacces
J'ai fait mon site avec joomla, que j'ai placé dans un sous répertoire /mondossier.
Donc pour que les navigateurs point le http://www.monsite.ch sur http://www.monsite.ch/mondossier (et en cachant la redirection dans la barre d'adresse)
Voici le .htacces que j'ai mis à la racine de mon site(trouver sur internet):
- Code: Tout sélectionner
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
# This section must come first!
# Add trailing slash if path does not contain a period or end with a slash
RewriteCond %{REQUEST_URI} !(\.|/$)
RewriteRule (.*) http://www.monsite.ch/$1/ [R=301,L]
#Change http://monsite.ch to http://www.monsite.ch (Optional)
RewriteCond %{HTTP_HOST} ^monsite.ch$
RewriteRule ^/?(.*)$ http://www.monsite.ch/$1 [R=301,L]
# Exclude any subdirectories in the site root that should NOT be re-directed to joomla
# At least include the joomla directory here. The other commented lines are examples and will need customising
# It is probably best not to use directories in your site root that also exist in joomla e.g. images
RewriteCond %{REQUEST_URI} !^/folder1
RewriteCond %{REQUEST_URI} !^/folder2
RewriteCond %{REQUEST_URI} !^/(folder3|folder4|folder5|folder6)
#Rewrites http://www.monsite.ch/mondossier to http://www.monsite.ch/
RewriteCond %{REQUEST_URI} !^/mondossier
RewriteRule ^(.*)$ mondossier/$1 [L]
Mais mon problème, je ne comprend pas pourquoi, mon shop que j'ai fait avec prestashop, et qui se trouve dans un sous dossier /catalogue, je peux y acceder sans problème.
Mais si je veux aller sur mon blog Wordpress dans le sous dossier /blog, là impossible NO FOUND.
Pourquoi? Que dois-je faire ?