Click to See Complete Forum and Search --> : Cruft Free URL
cbmcd2680
05-22-2006, 09:19 PM
Might not be posting in the right section but....
So I wanna have a URL that someone can type in cruft free such as:
www.myeasyurlwillmakeyouwonder.com/resume
Instead of:
www.myeasyurlwillmakeyouwonder.com/resume.html
In other words...without the .html extension. Must not be very bright, because I think I should have been able to figure this out by now after reading all the articles on cruft-free urls. BTW, the purpose of the site is to send people to a specific html page within my website that has a form on it to collect their information and have it emailed to me. I just want the URL to be simple for them to type in if they find it on a flyer, brochure, bathroom stall..:) Make sense?
Also, my hosting account was through godaddy.com, if that makes any difference.
P.S. I know very little about html -- I learned by tutorials.
Any help is greatly appreciated. Or just send me in the right direction. Thanks!
TheBearMay
05-22-2006, 10:40 PM
I've removed the other two posts. Please don't cross post.
David Harrison
05-23-2006, 01:25 AM
If you are on an Apache server, and it has mod_rewrite installed, then you can create a .htaccess file and put this in it:RewriteEngine On
RewriteBase /
RewriteRule ^resume/?$ resume.htmlThen upload the .htaccess file to your root directory.
To create a .htaccess file, you can simply open notepad, then click file > save as, then type in ".htaccess" (without quotes).
wamboid
05-23-2006, 07:55 AM
How about simply changing the name of resume.html to index.html and putting it in a sub-directory called resume.
How about simply changing the name of resume.html to index.html and putting it in a sub-directory called resume.
You would need to add a .htaccess file to that directory with:DirectoryIndex index.html
cbmcd2680
05-24-2006, 03:48 AM
If you are on an Apache server, and it has mod_rewrite installed, then you can create a .htaccess file and put this in it:RewriteEngine On
RewriteBase /
RewriteRule ^resume/?$ resume.htmlThen upload the .htaccess file to your root directory.
To create a .htaccess file, you can simply open notepad, then click file > save as, then type in ".htaccess" (without quotes).
So, I created the .htaccess file and tried that... didn't work on godaddy.com server. Do they use Apache, or what am I missing here? BTW, I'm using their Economy Hosting Plan.
I called GoDaddy support and he had me add a subdomain called RESUME. So, I added a subdomain, which appeared to just be a new folder or directory. Then, I figured out I had to rename the "resume.html" page to "index.html" within that "resume" directory in order for it to work (like Wamboid suggested) as well as copy my css layout to that directory for it to appear correctly . But the page pulls up as www.xxxxxxxxx.com/resume/ -- instead of www.xxxxxxxxx.resume.com/resume - without the slash afterwards.
Maybe I'm getting ahead of myself, but would this affect page ranking in Google... not that it matters to me right now since this site has nothing to do with my main site. Just curious...
I have no clue... just putting bits and pieces together of what I've researched. Sorry for my ignorance...
the tree
05-24-2006, 04:55 AM
If you are on an Apache server, and it has mod_rewrite installed, then you can create a .htaccess file and put this in it:RewriteEngine On
RewriteBase /
RewriteRule ^resume/?$ resume.htmlThen upload the .htaccess file to your root directory.How would I do that if I wanted to do the same thing with lots of files? And if I wanted it to use a different extension? Would it be something like this?RewriteEngine On
RewriteBase /
RewriteRule ^*/?$ *.php
edit: guess, not. That just causes internal server errorage.