Peruttu

.htaccess error rewriterule with apache

Hello,

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 :

Forbidden

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

Taidot: Apache, Linux

Näytä lisää: 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

Tietoa työnantajasta:
( 7 arvostelua ) Martigny, Switzerland

Projektin tunnus: #19290423

20 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön

talhamq

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 Lisää

$100 USD 0 päivässä
(172 arvostelua)
6.1
jbosseu

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 päivässä
(130 arvostelua)
5.8
Gauravsingh9828

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 päivässä
(112 arvostelua)
5.8
bindmission

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 päivässä
(83 arvostelua)
5.7
numerichost

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 päivässä
(74 arvostelua)
5.5
ausprofreelancer

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 Lisää

$90 USD 3 päivässä
(10 arvostelua)
4.4
aniruddh2511

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, Lisää

$50 USD 3 päivässä
(15 arvostelua)
3.8
Torricelli

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 Lisää

$35 USD 0 päivässä
(25 arvostelua)
3.9
caww5

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 päivässä
(10 arvostelua)
4.1
duythu0211

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! Lisää

$40 USD 3 päivässä
(12 arvostelua)
3.1
smrithinns

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 Lisää

$35 USD 3 päivässä
(14 arvostelua)
2.9
mohammedhdotio

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 päivässä
(7 arvostelua)
2.6
mingming46

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 päivässä
(2 arvostelua)
2.2
rdmrla

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 Lisää

$50 USD 1 päivässä
(2 arvostelua)
1.9
shiningdevelopor

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 Lisää

$150 USD 3 päivässä
(1 arvostelu)
2.1
aamirshahzadkp

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 Lisää

$30 USD 0 päivässä
(2 arvostelua)
0.0
bilalkhannexus

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 päivässä
(0 arvostelua)
0.0
faizank4

I will do this within a day

$155 USD 1 päivässä
(0 arvostelua)
0.0
jiangjiabao

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 Lisää

$100 USD 3 päivässä
(0 arvostelua)
0.0
ashishthm

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 päivässä
(0 arvostelua)
0.0