Sponsored Content
Top Forums UNIX for Advanced & Expert Users [SOLVED] htaccess rewrite rule help! Post 302682951 by vogueestylee on Tuesday 7th of August 2012 05:47:38 AM
Old 08-07-2012
[SOLVED] htaccess rewrite rule help!

hi there, I need that when user input

mysite.com/ponuka/AAA2869

it shows

mysite.com/ukaz.php?ponuka=AAA2869

because of facebook likes, and I found out that this is set up as rewrite rule in .htaccess file? how to achieve it?
thank you... Smilie

---------- Post updated at 04:47 AM ---------- Previous update was at 03:34 AM ----------

ok I got it:

PHP Code:
RewriteEngine On
RewriteRule 
^ponuka/([^/]*)\.html$ /ukaz.php?ponuka=$[L
using generateit net /mod-rewrite/ Smilie

Moderator's Comments:
Mod Comment edit by bakunin: glad you figured it out and many thanks for the posted follow-up. Changed the title to "SOLVED".

Last edited by bakunin; 08-07-2012 at 04:50 PM..
 

7 More Discussions You Might Find Interesting

1. Cybersecurity

htaccess

Something is wrong. I do everything right make the .htaccess file and stuff, but when I try the htpasswd command it says command not found. I use Putty SSH client and I think server is running RedHat 7.1 with Apache some version. HELP!!! (1 Reply)
Discussion started by: _hp_
1 Replies

2. Web Development

.htaccess Rewrite Rule

Hello All, I have been asked to create a .htaccess redirect. I have never attempted to work with one of these files. We have a pretty vanilla LAMP setup using rhel4 apache1.3 and php4.2.3. I was instructed to place the .htaccess file in the document root of the site and and to attempt to... (1 Reply)
Discussion started by: jaysunn
1 Replies

3. Web Development

Need help with rewrite rule

Hi, I hosted my site on Apache web server. I wanted to redirect all the users request to a HTML page(maintenance page). I used the below rewrite rule to do ths same. RewriteEngine on RewriteRule .* /maintenance.html The maintenance.html page contains an image. When ever I try to... (2 Replies)
Discussion started by: BSrikanthB
2 Replies

4. UNIX for Advanced & Expert Users

Apache rewrite rule help needed

Hi All, I want to redirect from http://localhost/abc/xyz/def?cc=dk&lc=da to http://localhost/abc/mnc/pdf?cc=dk&lc=da. Please suggest a rewrite rule. (0 Replies)
Discussion started by: jagnikam
0 Replies

5. Web Development

Rewrite Rule looping error

Hi, I have a domain "test.example.com" and i wanted to redirect only request like "test.example.com /index.html" to "test.example.com/index.html?NEW=1". Please note that a extra string "?NEW=1" added at the end of the URL. So Request for http://test.example.com/index.html REDIRECTS TO... (12 Replies)
Discussion started by: Paulwintech
12 Replies

6. Web Development

ReWrite rule giving a hard time.

Hi all, I am trying to find a rewrite rule that can help me with the following situation. So I am currently on a page which has a URL: http://www.test.mobile.com/#!/shop/phones/max-plus/features/ Now when I hover over a certain link, I can see that it will goto: <a... (0 Replies)
Discussion started by: Junaid Subhani
0 Replies

7. Web Development

302 Redirects Issues Effected Google Search Console (GSC) Fixed - DBSEO Goto Rewrite Problems Solved

Finally! Yesterday I FINALLY figured out why Google Search Console (GSE) was showing so many pages with 302 redirects in our link budget. For over a year, I thought this issue was relate to either Apache2 or DBSEO (our PHP module which rewrites our links to be SEO friendly). However, when I... (5 Replies)
Discussion started by: Neo
5 Replies
PBESREWR(1)							   User Commands						       PBESREWR(1)

NAME
pbesrewr - rewrite and simplify a PBES SYNOPSIS
pbesrewr [OPTION]... [INFILE [OUTFILE]] DESCRIPTION
Rewrite the PBES in INFILE, remove quantified variables and write the resulting PBES to OUTFILE. If INFILE is not present, stdin is used. If OUTFILE is not present, stdout is used. OPTIONS
OPTION can be any of the following: -p[NAME], --pbes-rewriter[=NAME] use pbes rewrite strategy NAME: 'simplify' for simplification 'quantifier-all' for eliminating all quantifiers 'quantifier-finite' for eliminating finite quantifier variables 'quantifier-one-point' for one point rule quantifier elimination 'pfnf' for rewriting into PFNF normal form -rNAME, --rewriter=NAME use rewrite strategy NAME: 'jitty' for jitty rewriting (default), 'jittyc' for compiled jitty rewriting, 'jittyp' for jitty rewriting with prover -s, --skip-data do not rewrite data expressions --timings[=FILE] append timing measurements to FILE. Measurements are written to standard error if no FILE is provided Standard options: -q, --quiet do not display warning messages -v, --verbose display short intermediate messages -d, --debug display detailed intermediate messages --log-level=LEVEL display intermediate messages up to and including level -h, --help display help information --version display version information AUTHOR
Written by Jan Friso Groote and Wieger Wesselink. REPORTING BUGS
Report bugs at <http://www.mcrl2.org/issuetracker>. COPYRIGHT
Copyright (C) 2012 Technische Universiteit Eindhoven. This is free software. You may redistribute copies of it under the terms of the Boost Software License <http://www.boost.org/LICENSE_1_0.txt>. There is NO WARRANTY, to the extent permitted by law. SEE ALSO
See also the manual at <http://www.mcrl2.org/mcrl2/wiki/index.php/User_manual/pbesrewr>. pbesrewr mCRL2 toolset 201202.0 (Release) April 2012 PBESREWR(1)
All times are GMT -4. The time now is 08:48 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy