Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

help with .htaccess and mod rewrite

Posted on 2011-10-06
3
Medium Priority
?
325 Views
Last Modified: 2012-05-12
Hi experts,

I need some help with a htaccess redirect I want to do. But somehow I dont get it work. Maybe somebody can help me with this.

I would like to forward all urls which have the pattern -vt# dosent matter if subdirectory or how ever the url looks.

What I need is that for example the url:
/xxxxxx/xxxxxx/word-vt200.php forward to /phpbb/viewtopic.php?t=200

The entire url is not important to me except the NUMBER behind the -vt which I need to forward to the parameter t=

I also dont care what it before the -vt part or what comes after the -vt# (number) part.

Can somebody help me with this?

Thanks in advance
0
Comment
Question by:Oliver2000
  • 2
3 Comments
 
LVL 16

Accepted Solution

by:
sjklein42 earned 2000 total points
ID: 36928450
I think that this should do it

RewriteRule	-vt([0-9]+)	/phpbb/viewtopic.php?t=$1

Open in new window

0
 

Assisted Solution

by:Oliver2000
Oliver2000 earned 0 total points
ID: 36928529
Working 100%!

Thank you so much....perfect!
0
 

Author Closing Comment

by:Oliver2000
ID: 36947435
Thank you, works perfect!
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What You Need to Know when Searching for a Webhost Provider
How do you create a user-centered user experience on your website? And what are some things you should consider in the process?
The viewer will learn how to dynamically set the form action using jQuery.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
Suggested Courses
Course of the Month12 days, 7 hours left to enroll

578 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question