help with RewriteRule

i need

http://www.domain.com/25/domain.com/a_text_here.html

to be rewrited to

view.php?id=25
svsvsvAsked:
Who is Participating?
 
RoonaanCommented:
Sorry, should have been [0-9] probably:

RewriteRule ^([0-9]+)/(.*)\.html$ /view.php?id=$1 [L]

-r-
0
 
RoonaanCommented:
Can it be as rigid as:

RewriteRule ([0-5]+)/(.*)\.html$ /view.php?id=$1 [L]

-r-
0
 
svsvsvAuthor Commented:
nope dosen't work
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
svsvsvAuthor Commented:
hmm, nope, still nothing
0
 
RoonaanCommented:
Have you added RewriteEngine On in your .htaccess already ?

-r-
0
 
svsvsvAuthor Commented:
yes, i've got some rewrites already, and i'm sure my configs are ok...
0
 
svsvsvAuthor Commented:
RewriteRule ^(.*)/(.*)/(.*)\.html$ view.php?id=$1

worked
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.