Hej,
Har en htaccess som ser ut såhär:
Options +FollowSymLinks -MultiViews
RewriteEngine on
# common pages
# ------------------------------
RewriteRule ^start$ index.php [nc]
RewriteRule ^new-phase-project$ new-phase-project.php [nc]
RewriteRule ^for-sale$ for-sale.php [nc]
RewriteRule ^to-let$ to-let.php [nc]
RewriteRule ^facilities$ facilities.php [nc]
RewriteRule ^activities$ activities.php [nc]
RewriteRule ^about-sabang$ about.php [nc]
RewriteRule ^contact$ contact.php [nc]
Filen "to-let.php" ska byta namn till "for-rent.php", så även adressen (/to-let => /for-rent) och det gärna med en 301 moved permanently.
Nu till problemet, jag testade att lägga till:
RewriteRule ^to-let$ for-rent [R=301,L]
RewriteRule ^for-rent$ for-rent.php [nc]
När jag testade att gå till /to-let kom jag då istället till http://www.domaincom/var/chroot/home/content/KUNDID/KUNDNUMMER/html/for-rent, alltså direkt från serverrooten.
Kom även på att "L" står för "Last" och att den då inte kör nästa regel, så ändrade till "NC", som på dom andra.
Ändrade till:
RewriteRule ^to-let$ to-let.php [nc]
RewriteRule ^for-rent$ for-rent.php [nc]
I filen to-let.php lade jag en permanent 301 med "header();" med PHP, men nu när jag laddar upp filen så händer inget. ALLA andra sidor fungerar som dom ska (även /for-rent), men går jag till /to-let kommer jag till samma långa adress som ovan. Har testat att köra to-let.php och kommer då till filen som man ska.
Vad kan ha hänt? Godaddy är helt värdelöst, hatar dom, men nu är det som det är... Kan det röra sig om nån sorts cache eller så? Har testat att ta bort .htaccess helt och lagt upp den på nytt, men ingen framgång.
Tacksam för lite hjälp!
