php - Redirect all routes who starts with a specified word to homepage -


i have problem .htaccess. file .htaccess :

rewritecond %{request_uri} ^/paiement rewriterule .* /index.php  rewritecond %{request_uri} ^/paiement/test1/ [or] rewritecond %{request_uri} ^/paiement/test2/dfd/$ [or] rewritecond %{request_uri} ^/paiement/test3/lkjjk [or] rewritecond %{request_uri} ^/paiement/test4/fdf/fdfd/?$ rewritecond %{request_filename} -f [or] rewritecond %{request_filename} -d rewriterule .* - [s=1] rewriterule ^(.*) /another/$1 [qsa,l 

so want redirect routes starts /paiement index.php. me please. thx in advance.

sorry, found solution, it's necessaire make redirect root, :

rewritecond %{request_uri} ^/paiement rewriterule (.*) / [r=301,l] 

Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -