Unix/Linux Go Back    

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

Htaccess Redirect Problem

Web Programming

htaccess, mod_rewrite, redirect

Thread Tools Search this Thread Display Modes
Old Unix and Linux 07-24-2015   -   Original Discussion by sharingsunshine
sharingsunshine's Unix or Linux Image
sharingsunshine sharingsunshine is offline
Registered User
Join Date: Jun 2015
Last Activity: 14 June 2016, 7:36 PM EDT
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
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.


Sponsored Links

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
.htaccess redirect with # rlopes Web Programming 2 11-05-2011 12:25 PM
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

All times are GMT -4. The time now is 01:34 AM.