mod rewrite - Apache URL Rewriting - change globally the root of a site -


i'd internally redirect url coming root , subdirectories of site specific subdirectory (and subdirectories) of root, i.e.

http://example.net/index.html --> /prod/index.html
http://example.net/image/im01.jpg --> /prod/image/im01.jpg ....

my provider gives me access .htaccess, not global server configuration files.

i tried following rule:

rewriterule ^(.*) /prod/$1 [l] 

but doesn't work because of internal redirect , recursive match of rule.

you need condition avoid infinite loop. add rewritecond before rule:

rewritecond %{request_uri} !^/prod/ 

some helpful links apache url rewriting:


Comments

  1. - Tipo de servicio: El tipo o calidad de servicio se utiliza para indicar la prioridad o importancia de los datos que se envían, lo que condicionará la forma en que éstos serán tratados durante la transmisión. Tamaño: 8 bit.
    vumoo

    ReplyDelete
  2. Excellent share! I got helpful information rangextd reviews

    ReplyDelete

Post a Comment

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -