[support] can you help me with .htaccess and redirection of drupal?

cooper Quintin cooperq at cooperq.com
Tue Jan 13 09:19:54 UTC 2009


Simone Dal Maso wrote:
> Hi,
> when I setup some basic redirection rules, also for path external to drupal, Drupal adds some strings after the URL. Now I explain:
> I write this simple line in the main .htaccess:
> Redirect /nvda http://www.spazioausili.net/~nvda_italia/nvda
>   
You should replace the above line with the following:
  RewriteRule ^nvda http://www.spazioausili.net/~nvda_italia/nvda
[L,R=permanent]

That should fix the problem.

> So, all request thatgoes to nvda must go to the nvda_italia/nvda folder. It works but with an error... in fact, if I type:
> www.spazioausili.net/nvda
> my browser is redirected to:
> http://www.spazioausili.net/~nvda_italia/nvda/?q=nvda
> so as you can see, drupal adds the  /?q=nvda at the end.
> How can I remove it?
> I think that this depends of this lines in my .htaccess but I don't know how to modify them:
>
>   # Rewrite current-style URLs of the form 'index.php?q=x'.
>   RewriteCond %{REQUEST_FILENAME} !-f
>   RewriteCond %{REQUEST_FILENAME} !-d
>   RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
>
> How can I solve it?
> thanks.
> --
> Simone Dal Maso.
> Tutti i miei progetti:
> Spazioausili: consultazione, ricerca e commenti sugli ausili informatici per non vedenti:
> http://www.spazioausili.net
>
>
> homepage sviluppo comunita' NVDA:
> www.nvda.it
> Visita il mio blog!
> http://simodm.blogspot.com
> homepage progetto musicale:
> www.juvox.it
>
>
>   


-- 
Cooper Quintin
Freelance Programmer, Indymedia Journalist
http://CooperQ.com
(510) 827-5382



More information about the support mailing list