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 I need some help with my urls

on one project I did the urls like

<a>/about</a>
so that it would display with out the .html extension and it works great

now i have a new project and for some reason I can not get it to work i can do

/about.html
and that works but I don’t want the .html

and when I try doing it without the .html upload to the server and test in my browser i get a 404

so is there a server setting that i need to check or is there another problem? I can’t figure this one out

951 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 1+ members
  • Has sold $1,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+3 more
Daan says

When you are linking towards /about/, you are actually linking to /about/index.html (or php). As far as I know, there’s a small htaccess ajustment that allows you to type /about/ and still end up at the about.html file. You might want to look into that.

1173 posts
  • Has been part of the Envato Community for over 5 years
  • Located in Australia
  • Has sold $10,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+3 more
Motionreactor says

It’s called Apache mod_rewrite…

http://net.tutsplus.com/tutorials/other/a-deeper-look-at-mod_rewrite-for-apache/

...and it makes pretty urls.

That is of course, assuming you are running an Apache Unix based server. There is a Windows server equivalent apparently… of a different name of course

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

you can use this in .htaccess

RewriteRule ^about/(.*) about.htm or RewriteRule ^about/(.*) about.php
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 wow that makes some sense because on the project that it worked on i was the client second web guy so he must have done that the server is through 1and1 on the other one I am technically the second guy but the other dude must have not changed that.

Ok I will try your suggestions thanks a whole bunch I let you know how it turns out

(btw the theme forest community rocks)

2541 posts
  • Has referred 10+ members
  • Has sold $100+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Located in United States
+9 more
CreatingDrew says
(btw the theme forest community rocks)
+1 Nice job helping out guys :)
155 posts
  • Has been part of the Envato Community for over 4 years
  • Located in Canada
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
Warll says

Some hosts have this set up automagicly. I remember reading somewhere where a host mentioned which and in what order their servers were set up to search for.

Ie something like:

index.html index.htm default.html default.htm INDEX .HTML index.php and the like.

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

Yes thank you. Its awesome to know that at three in the morning when you are banging your head to figure out a problem you can leave a question on the forums and feel like you can get some sleep!

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
Some hosts have this set up automagicly. I remember reading somewhere where a host mentioned which and in what order their servers were set up to search for.

Ie something like:

index.html index.htm default.html default.htm INDEX .HTML index.php and the like.

Do you know where one might find it I am pretty sure I have look over every thing on the control panel the company is dot5hosting maybe I can convince the client to switch

155 posts
  • Has been part of the Envato Community for over 4 years
  • Located in Canada
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
Warll says

Its not something to switch hosts over, just something that a larger host will have already set up.

Use mod_rewrite, its powerful enough to do anything.

by
by
by
by
by
by