How do I modify the .httaccess to redirect all wild cards to the main domain.

link|improve this question

38% accept rate
feedback

1 Answer

up vote 1 down vote accepted

What kind of pattern are you trying to redirect?

Redirecting subdomains should be done through DNS zone settings. But if you are trying to redirect everyone trying to access a test folder on your server like this: http://jean.org/test/* the following rules would probably work and redirect them to index.php:

Options +FollowSymLinks
Options +SymlinksIfOwnerMatch

RewriteEngine On
RewriteBase /
RewriteRule ^test/(.*) /index.php

I am not sure if this is the desired behaviour.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.