182 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 100+ members
  • Has sold $5,000+ on Envato Market
  • Has collected 50+ items on Envato Market
+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
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Located in Australia
  • Has sold $1,000+ on Envato Market
+4 more
Australia says

Also lose the .html , would look cleaner.

abhimanyusharma003
abhimanyusharma003 Recent Posts Threads Started
679 posts
  • Sells items exclusively on Envato Market
  • Has been a beta tester for an Envato feature
  • Has sold $10,000+ on Envato Market
  • Has referred 1+ members
+1 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
  • Has been part of the Envato Community for over 5 years
  • Has referred 100+ members
  • Has sold $5,000+ on Envato Market
  • Has collected 50+ items on Envato Market
+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
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Located in Australia
  • Has sold $1,000+ on Envato Market
+4 more
Australia says

Ask on stackoverflow.

182 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 100+ members
  • Has sold $5,000+ on Envato Market
  • Has collected 50+ items on Envato Market
+2 more
SuperFlash says

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

5492 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Located in Australia
  • Has sold $1,000+ on Envato Market
+4 more
Australia says

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

182 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 100+ members
  • Has sold $5,000+ on Envato Market
  • Has collected 50+ items on Envato Market
+2 more
SuperFlash says

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

5492 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Located in Australia
  • Has sold $1,000+ on Envato Market
+4 more
Australia says

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

1279 posts
  • Has been part of the Envato Community for over 2 years
  • Has referred 200+ members
  • Has sold $125,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+8 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