Link help: Changing /staff.html to /staff

Status
This thread has been locked.
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

1amDev

Designer & Developer
Supreme
Feedback score
30
Posts
511
Reactions
844
Resources
0
Very easily.
Add a directory in your root directory called "staff".
Then place your "staff.html" file into that directory.
Rename "staff.html" to "index.html"

Your staff page may need some re-coding since you have just changed it's directory.

Contact me if you need any help.

Contact:
Website: http://1amDev.com
Contact Form: http://1amDev.com/contact.html
Email: [email protected]
Skype: OneAmDev
 

Erictigerawr

Community Manager
Premium
Feedback score
2
Posts
721
Reactions
195
Resources
0

Kiwi

Professional Kiwi
Supreme
Feedback score
0
Posts
582
Reactions
672
Resources
0
Very easily.
Add a directory in your root directory called "staff".
Then place your "staff.html" file into that directory.
Rename "staff.html" to "index.html"

Your staff page may need some re-coding since you have just changed it's directory.

Contact me if you need any help.

Contact:
Website: http://1amDev.com
Contact Form: http://1amDev.com/contact.html
Email: [email protected]
Skype: OneAmDev
Possibly the worst method. What you should do is use .htacess as the folder method kills any chances at SEO.
 

1amDev

Designer & Developer
Supreme
Feedback score
30
Posts
511
Reactions
844
Resources
0
Possibly the worst method. What you should do is use .htacess as the folder method kills any chances at SEO.

True. However that is more complicated to explain to someone who wants it done simply and quickly.

Folder method still works fine.
Just not in the best of the best of ways.
 
Last edited:

Kiwi

Professional Kiwi
Supreme
Feedback score
0
Posts
582
Reactions
672
Resources
0
True. However that is more complicated to explain to someone who wants it done simply and quickly.

Folder method still works fine.
Just not in the best of the best of ways.
You're wrong once again. All he needs to do is edit .htaccess and add the following:

Code:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.html [NC,L]

If he doesn't have a .htaccess file, he needs to create one and add that code. It's more efficient and it'll help his SEO instead of having you kill it.
 

1amDev

Designer & Developer
Supreme
Feedback score
30
Posts
511
Reactions
844
Resources
0
You're wrong once again. All he needs to do is edit .htaccess and add the following:

Code:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.html [NC,L]

If he doesn't have a .htaccess file, he needs to create one and add that code. It's more efficient and it'll help his SEO instead of having you kill it.

Alright. Just trying to go the simple way for someone who may not understand the other way.

So, get him to redo it and go the way you said.
 

z1haze

Feedback score
0
Posts
147
Reactions
39
Resources
0
or you could say "I dont know what rewrite rules are or how so use them, so I just provided the hacky solution that I usually use because I dont know what I'm doing."

That's probably more accurate.[DOUBLEPOST=1448047507,1448047461][/DOUBLEPOST]
Lol totally not arkham's staff page
and holy crap, its not even a knockoff, its a straight ripoff
 

1amDev

Designer & Developer
Supreme
Feedback score
30
Posts
511
Reactions
844
Resources
0
or you could say "I dont know what rewrite rules are or how so use them, so I just provided the hacky solution that I usually use because I dont know what I'm doing."

That's probably more accurate.[DOUBLEPOST=1448047507,1448047461][/DOUBLEPOST]
and holy crap, its not even a knockoff, its a straight ripoff

Are you replying to me?
I know what rewrite rules are and how to use them in a .htaccess file. Again, it was just a simple solution for someone who may not know of those rules and how to use them. Of course there is another way of solving it with the .htaccess.
 
Status
This thread has been locked.
Top