182 posts
  • Has been part of the Envato Community for over 6 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
+5 more
Australia
says

Also lose the .html , would look cleaner.

abhimanyusharma003
abhimanyusharma003 Recent Posts Threads Started
852 posts
  • Interviewed on an Envato blog
  • Sells items exclusively on Envato Market
  • Has been a beta tester for an Envato feature
  • Has sold $10,000+ on Envato Market
+2 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 6 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
+5 more
Australia
says

Ask on stackoverflow.

182 posts
  • Has been part of the Envato Community for over 6 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
+5 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 6 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
+5 more
Australia
says

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

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

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by