.htaccess error rewriterule with apache


in a domain, I have a .htaccess that is configured like this :

RewriteEngine on

RewriteRule ^admin$ /admin/ [R,L]

RewriteRule (.*) [login to view URL]%{REQUEST_URI}?%{QUERY_STRING}&id=7 [P]

in the old server, this is working very well, but in the new server, the rule is going in a loop and it's impossible to come in the website.

When I open the page, I have this error :


You don't have permission to access /sf2/sub/sf2/sub/sf2/sub/sf2/sub/sf2/sub/sf2/sub/sf2/sub/sf2/sub/sf2/sub/sf2/sub/sf2/sub/sf2/sub/sf2/sub/......./sf2/sub/[login to view URL]

As you can see, the rule is calling infinity time !!! and I want only one time. I know that this is nothing to do with .htaccess because this is working well in other server that call the same file.

may be this is apache configuration ? I don't know.

If someone has already has this trouble ? How to fixe it ?

Please answer me only if you know how to fixe it.

Thank you

Квалификация: Apache, Linux

Показать больше htaccess rewriterule, rewriterule .* - [f], apache custom error page not working, htaccess example, apache errordocument example, apache error messages, apache rewriterule, htaccess redirect, apache installation assigned domain name, htaccess error handling, htaccess environment rewriterule, rewriterule apache qsa lighttpd, apache dynamic sub domain htaccess, google analytics apache redirect alias domain www, lighttpd rewriterule apache, setup htaccess redirects windows apache, rewriterule apache page, htaccess error page creator, htaccess error rewrite url, htaccess redirect windows apache

О работодателе:
( 7 отзыв(-а, -ов) ) Martigny, Switzerland

ID проекта: #19290423

20 фрилансеров(-а) в среднем готовы выполнить эту работу за $76


I have experience in deploying and maintaining of: Cloud Computing Platforms: AWS Amazon Web Services,Microsoft AZURE, Google Cloud (GCP). Server Operating Systems: Windows Server 2003-to-2012R2, Windows Ser Больше

$100 USD за 0 дней(-я)
(172 отзывов(-а))

I have worked as server admin for big names like [login to view URL] and servercentre.net. Can help you with redirects. Let me know.

$45 USD за 1 день
(130 отзывов(-а))

Hi I can fix the redirection rules of .htaccess and can start work right now I have 5 years of experience as a system admin and can fix it

$50 USD за 1 день
(112 отзывов(-а))

Hello Hope you are doing well. I have 6 years of experience in Linux, Apache and Web hosting. I can fix the issue. Regards VishnuLal*

$100 USD за 3 дней(-я)
(83 отзывов(-а))

Hi, I will check the issue and will resolve it by fixing permission issue. I have more than 10 Years of expertise as Server Admin. Let's discuss. Thanks !

$55 USD за 0 дней(-я)
(74 отзывов(-а))

Hello I can help you to update your htaccess file and rewrite rules. I have over 21 years of extensive experience with Apache and its modules, including the mod_rewrite module and have completed many projects with iss Больше

$90 USD за 3 дней(-я)
(10 отзывов(-а))

Hello Sir, i have experience with this type of project. and i have also experience, -> PHP, Wordpress, Magento, Opencart, codeigniter, HTML5, CSS3, Javascript, API based Work etc... -> Server handling :- Cpanel,WHM, Больше

$50 USD за 3 дней(-я)
(15 отзывов(-а))

Hi, i hope you're doing well. I've just read your project's description and i would like to help you with it. I'm an experienced web developer with the necessary htacess and mod rewrite skills for getting this jo Больше

$35 USD за 0 дней(-я)
(25 отзывов(-а))

Hi No problems I ready to fix your rediretion rule for new apache server I am an expert in this tell me your version of apache old one and new

$150 USD за 1 день
(10 отзывов(-а))

Hello, nice to meet you! I'm a DevOps Engineer with 3-year experience in Linux, Webserver: Nginx, Apache.. I'm confident to handle this task because it's one part of my daily jobs in office. Feel free to contact me! Больше

$40 USD за 3 дней(-я)
(12 отзывов(-а))

Hello, I am an RHCE, AWS and cPanel certified systems engineer with expertise in managing Linux servers. I have worked on setting up, configuring and troubleshooting Web servers, Mail servers, Application servers an Больше

$35 USD за 3 дней(-я)
(14 отзывов(-а))

Hello, I can help you fixing this issue. I will need more details about old apache version and new server apache version. to track this issue . Highest Regards Mohammed H

$35 USD за 3 дней(-я)
(7 отзывов(-а))

Oh! I have already faced this issue many times and can fix this very easily in just couple of hrs. I'd love to talk more with you about your needs. Best, Li

$100 USD за 3 дней(-я)
(2 отзывов(-а))

Hello. I can help with your Apache rewrite issues. I'm a senior developer located in India and have more than 10 years of experience of working with and administering Linux and its variants. This seems to be an i Больше

$50 USD за 1 день
(2 отзывов(-а))

I know the method and can do it How are you. I have read your description carefully. Very Interesting. I have many experiences in server management. So I can finish your project quickly and perfectly If you hire Больше

$150 USD за 3 дней(-я)
(1 отзыв)

I am available for your work. I am web host manager since 2016 in Pakistan. I have many managed Servers of my clients. I have best ideas to managed your site and set the proper rule in ,htaccess file. Can you cha Больше

$30 USD за 0 дней(-я)
(2 отзывов(-а))

Hey there i can fix your issue. if you can give me details of your server so that i will start working.

$66 USD за 3 дней(-я)
(0 отзывов(-а))

I will do this within a day

$155 USD за 1 день
(0 отзывов(-а))

Hello. I read your project very carefully and I am ready to start working on it. I am an expert with all the skills which you mentioned in your project description. ----------------- If you want I can provide Больше

$100 USD за 3 дней(-я)
(0 отзывов(-а))

My work involves configuring server and hosting web based apps and websites. I have faced similar issue in the past. lets have a quick chat regarding the server and hosting platform versions that you have.

$77 USD за 7 дней(-я)
(0 отзывов(-а))