👤
Home Man
Search
Today's Posts
Register

Discuss Web Programming and Web Server Administration, including LAMP, Apache, MySQL, HTML, SEO, and other Web APIs and topics.

Htaccess Redirect Problem

Tags
htaccess, mod_rewrite, redirect

👤 Login to reply

 
Thread Tools Search this Thread
# 1  
Old 07-24-2015
Htaccess Redirect Problem

Hi,

I have this string that I need to match and redirect to an actual live url.

I have tried what I know and it won't match. This is the url I want to match.

here is my attempt at a pattern match

Code:
RewriteCond %{REQUEST_URI} ^/smf_test/$
RewriteCond %{QUERY_STRING} ^topic=([0-9]+)\.([0-9]+);wap2$
RewriteRule ^.*$  /smf/index.php/topic,%1.%2.html? [R=301,L]

I have many with different topic numbers that I need to redirect. So this will be a great help to get this solved.

Thanks,

Randal
👤 Login to reply

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Problem with << redirect - Please help! mansmaan Shell Programming and Scripting 11 01-04-2012 02:42 PM
.htaccess redirect with # rlopes Web Programming 2 11-05-2011 12:25 PM
Redirect Problem rasingraj Shell Programming and Scripting 2 08-23-2011 11:30 AM
Redirect with htaccess chandranjoy UNIX for Advanced & Expert Users 0 02-16-2011 07:12 AM
Redirect with htaccess to upper level folder, how to? Rafaweb UNIX for Dummies Questions & Answers 0 12-13-2010 10:37 AM
.htaccess redirect with masking globalnerds UNIX for Advanced & Expert Users 1 06-02-2010 09:37 PM
Cron redirect problem grajp002 Solaris 9 12-09-2009 08:09 PM
KSH problem - how do i redirect three times? mjays Shell Programming and Scripting 16 10-01-2008 10:23 AM
Redirect Problem 2dumb Shell Programming and Scripting 4 10-09-2007 02:41 PM


All times are GMT -4. The time now is 02:27 AM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
×
UNIX.COM Login
Username:
Password:  
Show Password