302 server status code to 301/404 server status code


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers 302 server status code to 301/404 server status code
# 1  
Old 05-22-2011
302 server status code to 301/404 server status code

Hello,

Sorry for my english.
I have an arcade site.
mydomain.com/game.html If database has the game name is good.
mydomain.com/fd43f54.html if database has not the game name redirect to mydomain.com by 302 error code.
if database has not the game name i want a 301/404 error code and no redirect.
I attached file.php to this post. Thank you very much for help.

my htaccess file:

RewriteEngine on
RewriteRule ^([_A-Za-z0-9-]+).html file.php?f=$1 [L]
RewriteRule ^([_A-Za-z0-9-]+)/$ browse.php?c=$1 [L]
RewriteRule ^([_A-Za-z0-9-]+)/([0-9]+) browse.php?c=$1&page=$2 [L]
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. What is on Your Mind?

Server Status Updates on Twitter @UNIXLinux

Hey! In case members cannot login to the forums due to our data center going off line, please check our twitter feed for updates @unixlinux Looks like the Houston Level3 data center went offline briefly today (for about 15 minutes). HOLD ON HOUSTON! If you notice any issues and... (0 Replies)
Discussion started by: Neo
0 Replies

2. UNIX for Advanced & Expert Users

CMD to check status of the server using Wget

Hi All, Using Wget I'm able to get the status of the server.....only when the server is completely down or up.... but problem here in script is Suppose if the server got hang I mean to say that if the server is taking long time to login, for example normally the server takes 3 seconds to login... (3 Replies)
Discussion started by: manohar2013
3 Replies

3. Shell Programming and Scripting

Find the remote server status.

Hi All, I would like to connect from "Instance A" to "Instance B" with the help of sftp. Where as Instance B is having clustered servers ( 2 servers pointing same instance ). Now, my question is before connecting to "Instance B" from "Instance A" how do know whether server is running or not.... (3 Replies)
Discussion started by: Girish19
3 Replies

4. Shell Programming and Scripting

To verify status of particular Component(Siebel Server srvrmgr)

Hi , I want to connect srver to pertuculat mode(i.e.srvrmanger)and after that I want to verify status of perticular component(i.e.CommOutboundMgr) For that I have created following script bout after 3rd line it is not executing 4th linei.e. list comp CommOutboundMgr. cd... (2 Replies)
Discussion started by: vivek1489
2 Replies

5. UNIX for Dummies Questions & Answers

How to monitor Unix server CPU status?

I like to know how to monitor the UNIX CPU/memory status over time. I need to data to do some graphical representation of the server load. I sort of need to keep track of the vmstat but i dont know how. I hope someone would kindly help me out. thanks. (1 Reply)
Discussion started by: shingpui
1 Replies

6. Programming

How to check TCP server status

Please tell me according to C/C++ socket programming; how client can check whether server is running or not during TCP communication. (1 Reply)
Discussion started by: mansoorulhaq
1 Replies

7. Shell Programming and Scripting

How to check the file status in a remote server?

Hi All, Thanks in Advance. My requirement is there are some data files to be updated(some times new files get created) regularly in server A, these files are to be updated to the server B(backup server) by using SCP, I have to write a script for this purpose, before copying the files to server... (3 Replies)
Discussion started by: rajus19
3 Replies

8. UNIX for Advanced & Expert Users

Apache /server-status

HI, Where is the script for /server-status handler located? Can i change code of the script somehow? Thank you all (3 Replies)
Discussion started by: solvman
3 Replies
Login or Register to Ask a Question
ggz.modules(5)							  GGZ Gaming Zone						    ggz.modules(5)

NAME
ggz.modules - GGZ Gaming Zone module configuration file DESCRIPTION
The GGZ Gaming Zone uses the file ggz.modules in order to configure which game modules are properly installed. The only approved method of altering this file is using the ggz-config utility, however the file structure is documented here in order to facilitate manual repairs if necessary. PARAMETERS
The ggz.modules file is formattted in sections, each of which begins with a [SectionID] line. The first (required) section is [Games]. This section is followed by any number of game-specific sections named [g#]. The [Games] section is formatted as follows: [Games] *GameList* = GameName1 GameName2 ... GameName1 = g1 g2 ... GameName2 = g3 ... *GameList* Should be set to a list of all the game names which are currently installed. Each name should appear once and only once, and should be the internal game name (eg: NetSpades) and not the full descriptive name of the game. GameNameX Should equal a game name from the *GameList*, a real world example would be NetSpades. It should be set to a list of unique game section ID's of the form g#. Each game section ID must be the name of a section ID which follows in the file. The ID's need not be in any specific order, and ID numbers may be skipped but NOT repeated. A game section is formatted as follows: [g#] Author = Game's Author CommandLine = /path/to/command [optionlist] Frontend = FECODE Homepage = URL to Game's homepage Name = GameName Protocol = ProtocolVersion Version = GameVersion Most of these parameters are self explanatory, however the following may need clarification: [g#] This section code ID must be present in one of the game lists in the [Games] section above. FECODE The frontend code should be set to either gtk or kde depending on which user interface the game was designed for. Note that the game is expected to work with either the GTK+ or KDE clients, assuming that the user has the proper windowing system installed. GameName This must equal the game name (in the [Games] section) which properly points to this [g#] section. ProtocolVersion This will be used to match an installed game client with the protocol version currently used by the game server. This allows a new game client to be installed, while retaining the old client for backwards compatibility with older servers. GameVersion This is simply the version of the game client itself. It need not be the same version as the game server as long as the Proto- colVersion ID matches. FILES
@ggzconfdir@/ggz.modules SEE ALSO
ggz_h(3), ggzcore_h(3), ggzmod_h(3), libggz(3), libggzcore(3), libggzmod(3), attributes(5), ggz.modules(5), gnome-interfaces(5), ggz(6), ggz-config(6), ggz(7) GGZ Gaming Zone: http://www.ggzgamingzone.org/ AUTHORS
The GGZ Development Team <ggz-dev@mail.ggzgamingzone.org> Last edited by Michal Pryc, Sun Microsystems Inc., 2008. The GGZ Development Team 0.0.14 ggz.modules(5)