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

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 244
  • Last Modified:

help with RewriteRule

i need

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

to be rewrited to

view.php?id=25
0
svsvsv
Asked:
svsvsv
  • 4
  • 3
1 Solution
 
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
 
RoonaanCommented:
Sorry, should have been [0-9] probably:

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

-r-
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
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

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now