Htaccess Redirect Problem

Tags
htaccess, mod_rewrite, redirect, web

Login to Reply

 
Thread Tools Search this Thread
# 1  
Old 07-25-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

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Similar Threads 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 03:42 PM
.htaccess redirect with # rlopes Web Programming 2 11-05-2011 01:25 PM
Redirect Problem rasingraj Shell Programming and Scripting 2 08-23-2011 12:30 PM
redirect stdout and stderr to file wrong order problem with subshell Osim Shell Programming and Scripting 3 04-14-2011 12:49 PM
Redirect with htaccess chandranjoy UNIX for Advanced & Expert Users 0 02-16-2011 08:12 AM
Redirect with htaccess to upper level folder, how to? Rafaweb UNIX for Dummies Questions & Answers 0 12-13-2010 11:37 AM
.htaccess redirect with masking globalnerds UNIX for Advanced & Expert Users 1 06-02-2010 10:37 PM
Cron redirect problem grajp002 Solaris 9 12-09-2009 09:09 PM
KSH problem - how do i redirect three times? mjays Shell Programming and Scripting 16 10-01-2008 11:23 AM
Redirect Problem 2dumb Shell Programming and Scripting 4 10-09-2007 03:41 PM
problem with redirect stdout to file mlucas UNIX for Advanced & Expert Users 3 12-06-2006 10:53 AM
htaccess _hp_ Security 1 06-24-2002 11:19 PM
.htaccess Avenger UNIX for Dummies Questions & Answers 3 04-12-2002 12:49 PM
.htaccess? Puc conDoin UNIX for Dummies Questions & Answers 1 05-28-2001 09:58 AM
All times are GMT -4. The time now is 11:37 PM.

Unix & Linux Forums Content Copyright 1993-2018. All Rights Reserved.