Home Man
Today's Posts

Javascript, Javascript libs and toolkits, LAMP, Apache, MySQL, HTML, and other web coding posts.

Htaccess Redirect Problem

htaccess, mod_rewrite, redirect, web

Login to Reply

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


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

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.


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 10:22 PM.

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