27 posts
  • Has been part of the Envato Community for over 5 years
  • Sells items exclusively on Envato Market
  • Located in Europe
Pranick says

Yeah, mod_rewrite is very frustrating ;-).

the only piece of code that has worked is RewriteRule .* good.html
If so, maybe you should write a rule for every file you have. Like:
RewriteRule about$ about.html
RewriteRule contact$ contact.html
RewriteRule services$ services.html

It is very inefficient but simple.

and another strange thing is when i go to website.com/images it says there is no indexfile where as most places give you a 403 error

Did you remove Options -Indexes?

If no, then mayby try this:

RewriteRule images/$ - [F]

84 posts
  • Has been part of the Envato Community for over 5 years
  • Has sold $100+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 1+ items on Envato Market
+2 more
Oreius says

ok ill try that and see how it works (crossing my fingers) probably like tonight on the images folder its not bad that it says that it just struck me as really odd and I did delete the options thing but put it back that happened over and over about 10 times.

Thanks so much for all the awesome help ill let you know later if it worked

1179 posts
  • Has referred 200+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+2 more
mabuc says

this is how I do it…

Options FollowSymLinks
RewriteEngine On

RewriteRule ^index/(.*) index.php  /*  http://youdomain.com/index/  */
RewriteRule ^blog/([0-9]+)/(.*) blog.php?id=$1&title=$2   /*  http://yourdomain.com/blog/18/blog-post-title */

add RewriteBase / when your using godaddy hosting.. :)

84 posts
  • Has been part of the Envato Community for over 5 years
  • Has sold $100+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 1+ items on Envato Market
+2 more
Oreius says

Ok ill try that have not yet got the chance to get another crack at it

84 posts
  • Has been part of the Envato Community for over 5 years
  • Has sold $100+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 1+ items on Envato Market
+2 more
Oreius says

Well i ended up dropping the client (long story) so I wont be working on that project any more

Thank You all for the awesome help!

by
by
by
by
by
by