473,554 Members | 2,153 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Htaccess rewrite 301 redirect problem

1 New Member
Hello,

I try to make a rewrite system to direct users the way I want, but I keep getting errors. The code I wrote:

RewriteRule ^(games)/(.*)$ games.php?id=$1 [L]

I want to redirect these pages from games.php. I had to do a 301 redirect, but it didn't work even though I added [R=301]. How do I fix the error, I would be glad if you could help me.

Best regards.
Oct 11 '20 #1
0 2727

Sign in to post your reply or Sign up for a free account.

Similar topics

2
9163
by: bagsmode | last post by:
Hi, I'm trying to set a session cookie and then redirect, however I get the error: Status: 302 Moved Location: /index.cgi I thought I recall getting an error like this when I first tried performing a redirect when I had left in print "Content-type:text/html\n\n";
3
2804
by: Gary | last post by:
I am having a strange problem that I cannot solve. I have an asp page that I use for a user to login and gain access to other pages. When the user logs in I set a couple of session variables like Session("UserType") = "Sales". Then based on the Session("UserType") I use response.redirect to take the user to a specific page. The logic and...
4
2810
by: Van Duijn | last post by:
I use an inlineframe to display pages with images with javascript pop up links. These image pages redirect to each other with the trusted <meta http-equiv="refresh" content="10; url=vb9.htm"> metatag. Now this works perfectly well in Netscape and Firefox, but Internet Explorer is spoling the fun. After you click an image to open the popup...
0
1081
by: Volkan Karabođa | last post by:
Hi all... I have an interesting problem with response.redirect func. I have used this statement to locate other pages in my app. but It doesnt work on win2003 server and framework 1.1.4322 but it works on xp machine and same framework. Whwn I want to locate any pages with using response.redirect , page seems empty I mean any control on the...
6
2059
by: Valeri Hristov via .NET 247 | last post by:
I have a problem with a ASP.NET web site. I?m using Windows2000Server SP4, .NET Framework 1.1. The problem is that sometimes(relatively seldom) when browsing the Administration Console(see below) a redirect (unwanted and unexpected) is made to thePublic Site to a random page. Often (almost in every of thecases) the redirect is to a page of the...
2
4203
by: Oney | last post by:
I send a popup to client then I redirect to the main page but the popup doesn't raise. If I comments the Response.Redirect line the popup is raised How can I solve this problem??? thanks Response.Write("<SCRIPT Language=Javascript> \n var...
8
4046
hsriat
by: hsriat | last post by:
I had a .htaccess file for Rewrite on my server and was working fine. Now when I used the same code in 1and1 hosting, its not working. May be something is wrong or unexpectedly good happening inside 1and1 servers. Options +FollowSymLinks RewriteEngine on RewriteRule /id/(.*)/name/(.*) index.php?id=$1&name=$2 If anyone knows what's...
0
1448
by: cristibodi | last post by:
I have 2 questions: 1. How many 301 redirects are allowed in the .htaccess files? 2. How is the loading time for a page affected by the number of 301 redirects in the .htaccess file? Thank you for all the answers. Cristian
1
3993
by: bnashenas1984 | last post by:
Hi everyone I need to rewrite www subfolder to a folder. All other subdomains should not be affected by this rule. For example if the visitor goes to : http://anysubdomain.mysite.com Nothing should be changed but if he/she goes to : http://www.mysite.com OR http://mysite.com Then rewrite rule should change it to :
0
7530
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7808
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8047
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7570
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6156
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5162
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3556
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2022
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1141
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.