Advertisement:

Author Topic: example.com/index.php?action=sitemap;xml ---> example.com/sitemap.xml  (Read 2982 times)

Offline SimpleGost

  • Full Member
  • ***
  • Posts: 626
  • Gender: Male
example.com/index.php?action=sitemap;xml ---> example.com/sitemap.xml

Kako da uradim da mi tu čuva sitemap?
U kom php fajlu ima lokacija sitemapa...

Offline Dzonny

  • Local Moderator
  • SMF Super Hero
  • *
  • Posts: 11,940
  • Gender: Male
  • No sleep...
    • dzontra.nikola on Facebook
    • Dzonny on GitHub
    • dzontranikola on LinkedIn
    • @opusteniforum on Twitter
    • Samo opusteno
Re: example.com/index.php?action=sitemap;xml ---> example.com/sitemap.xml
« Reply #1 on: January 08, 2012, 05:49:26 AM »
.htaccess fajl:
Code: [Select]
RewriteEngine on
RewriteRule ^sitemap.xml$ index.php?action=sitemap;xml
Ako ti se forum nalazi u /forum diru, onda:
Code: [Select]
RewriteEngine on
RewriteRule ^sitemap.xml$ /forum/index.php?action=sitemap;xml

etc...

Offline SimpleGost

  • Full Member
  • ***
  • Posts: 626
  • Gender: Male
Re: example.com/index.php?action=sitemap;xml ---> example.com/sitemap.xml
« Reply #2 on: January 08, 2012, 01:45:39 PM »
jednostavno rewrite link :D
Pa da, kako se toga nisam setio .

Hvala Dzonny-no  :laugh:

ReWrite komanda je stvarno FENOMENALNA
« Last Edit: January 08, 2012, 02:05:23 PM by InternetFazoni »