182 posts
  • Bought between 50 and 99 items
  • Exclusive Author
  • Has been a member for 5-6 years
  • Referred between 100 and 199 users
  • Sold between 5 000 and 10 000 dollars
  • United States
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 ?

5075 posts
  • Australia
  • Bought between 100 and 499 items
  • Community Superstar
  • Exclusive Author
  • Has been a member for 3-4 years
  • Interviewed on the Envato Notes blog
  • Microlancer Beta Tester
  • Referred between 1 and 9 users
  • Sold between 1 000 and 5 000 dollars
Australia says

Also lose the .html , would look cleaner.

abhimanyusharma003
abhimanyusharma003 Recent Posts
Threads Started
512 posts
  • Microlancer Beta Tester
  • Exclusive Author
  • Has been a member for 2-3 years
  • Referred between 1 and 9 users
  • Sold between 10 000 and 50 000 dollars
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
  • Bought between 50 and 99 items
  • Exclusive Author
  • Has been a member for 5-6 years
  • Referred between 100 and 199 users
  • Sold between 5 000 and 10 000 dollars
  • United States
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

5075 posts
  • Australia
  • Bought between 100 and 499 items
  • Community Superstar
  • Exclusive Author
  • Has been a member for 3-4 years
  • Interviewed on the Envato Notes blog
  • Microlancer Beta Tester
  • Referred between 1 and 9 users
  • Sold between 1 000 and 5 000 dollars
Australia says

Ask on stackoverflow.

182 posts
  • Bought between 50 and 99 items
  • Exclusive Author
  • Has been a member for 5-6 years
  • Referred between 100 and 199 users
  • Sold between 5 000 and 10 000 dollars
  • United States
SuperFlash says

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

5075 posts
  • Australia
  • Bought between 100 and 499 items
  • Community Superstar
  • Exclusive Author
  • Has been a member for 3-4 years
  • Interviewed on the Envato Notes blog
  • Microlancer Beta Tester
  • Referred between 1 and 9 users
  • Sold between 1 000 and 5 000 dollars
Australia says

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

182 posts
  • Bought between 50 and 99 items
  • Exclusive Author
  • Has been a member for 5-6 years
  • Referred between 100 and 199 users
  • Sold between 5 000 and 10 000 dollars
  • United States
SuperFlash says

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

5075 posts
  • Australia
  • Bought between 100 and 499 items
  • Community Superstar
  • Exclusive Author
  • Has been a member for 3-4 years
  • Interviewed on the Envato Notes blog
  • Microlancer Beta Tester
  • Referred between 1 and 9 users
  • Sold between 1 000 and 5 000 dollars
Australia says

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

1192 posts
  • Bought between 1 and 9 items
  • Elite Author
  • Exclusive Author
  • Has been a member for 2-3 years
  • Microlancer Beta Tester
  • Most Wanted Bounty Winner
  • Referred between 200 and 499 users
+3 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