182 posts
  • 6 Years of Membership
  • Affiliate Level 4
  • Author Level 4
  • Collector Level 3
+2 more
SuperFlash
says

I’m a noob in url rewriting and i really need help to figure this out :

I have this url : section/news.php?url=section/news/27-how_to_make_rewrite.html I want to access this news with the url parameter and the link would be : section/news/27-how_to_make_rewrite.html

How I can do it ?

5492 posts
  • 5 Years of Membership
  • Affiliate Level 1
  • Australia
  • Author Level 3
+5 more
Australia
says

Also lose the .html , would look cleaner.

abhimanyusharma003
abhimanyusharma003 Recent Posts Threads Started
945 posts
  • Blog Interview
  • Trendsetter
  • Exclusive Author
  • Beta Tester
+3 more
abhimanyusharma003
says
RewriteEngine On
RewriteRule ^([a-zA-Z0-9-+/]+)$ news.php?url=$1
RewriteRule ^([a-zA-Z0-9-+/]+)/$ news.php?url=$1
I hope this will work for you. This will drop .html too
182 posts
  • 6 Years of Membership
  • Affiliate Level 4
  • Author Level 4
  • Collector Level 3
+2 more
SuperFlash
says

This doest work for me.

I have :
RewriteEngine on
RewriteBase   /section/
RewriteRule news/^([a-zA-Z0-9-+/]+)/$ news/news.php?url=$1

the .htacess file is in the root, i have a folder named section and inside this folder i have the news folder

5492 posts
  • 5 Years of Membership
  • Affiliate Level 1
  • Australia
  • Author Level 3
+5 more
Australia
says

Ask on stackoverflow.

182 posts
  • 6 Years of Membership
  • Affiliate Level 4
  • Author Level 4
  • Collector Level 3
+2 more
SuperFlash
says

i wanna test this community. This community is supposed to be the best right ?

5492 posts
  • 5 Years of Membership
  • Affiliate Level 1
  • Australia
  • Author Level 3
+5 more
Australia
says

Your perogative, just if you want it within minutes or to prove a point…

182 posts
  • 6 Years of Membership
  • Affiliate Level 4
  • Author Level 4
  • Collector Level 3
+2 more
SuperFlash
says

i’m just demanding help from this community…whats your point ?

5492 posts
  • 5 Years of Membership
  • Affiliate Level 1
  • Australia
  • Author Level 3
+5 more
Australia
says

Think you summed it up. Say no more, think your black paw has gone to your head dude

1406 posts
  • 3 Years of Membership
  • Affiliate Level 5
  • Author Level 8
  • Beta Tester
+9 more
Pricop
says

i’m just demanding help from this community…whats your point ?

What’s up with the ‘demanding’ stuff? I totally agree with SportTipsWorld, cut some fingers from the black pow when you are looking in the mirror, because you can’t see yourself too clear.

Why would anyone waste time with you just because “you want to test the community”, that’s a childish statement and I guess no one will bother to give you an answer from now on.

by
by
by
by
by
by