.htaccess
Visa första olästa |
| #1 | |
|
Nykomling
| Hej!
Behöver hjälp eller någon lösning för att ta bort .html taggen efter varje sida. Se: http://www.victorerixon.com/index.html <- Vill inte använda wordpress eller något annat ![]() |
| #2 | |
|
Flitig postare
|
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.html -f RewriteRule ^(.*)$ $1.html Det där ska fungera fint. |
| #3 | |
|
Nykomling
|
Har nu klistrat in det i htaccess. utan någon större nytta, vad gör jag fel? Alla mina sidor heter index.html, portfolio.html och ligger i root foldern. Har lagt in exakt den koden i htaccess. och sparat, ändå är allt likadant. Är det något mer jag ska göra?
|
| #4 | |
|
Flitig postare
|
Är mod_rewrite aktiverat i apache?
|
| #5 | |
|
Nykomling
|
Kan inget om apache! Lust att instruera?
|
| #6 | |
|
Nykomling
|
# Block access to "hidden" directories whose names begin with a period. This
# includes directories used by version control systems such as Subversion or Git. <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.html -f RewriteRule ^(.*)$ $1.html # Replace html with your file extension, eg: php, htm, asp</IfModule> Har jag i min befintliga .htaccess jag fick från boilerplate. |
| #7 | |
|
Flitig postare
|
Spelar denna modifiering någon roll ur SEO-perspektiv?
|
| #8 | |
|
Flitig postare
|
Länkar du fortfarande till .html sidor?
|
Aktiva användare som för närvarande tittar på det här ämnet: 0 (0 medlemmar och 0 gäster)

Visa första olästa
