Advertisement:

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

Offline Luka Paunović

  • Full Member
  • ***
  • Posts: 626
  • Gender: Male
  • :)
    • internetfazon on Facebook
    • @lukapaunovic on Twitter
    • Internet Fazoni
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...


www.pegazhosting.com
█ Web Hosting | Reseller Hosting | Registracija Domena

Offline Dzonny

  • Local Moderator
  • SMF Super Hero
  • *
  • Posts: 11,616
  • 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 Luka Paunović

  • Full Member
  • ***
  • Posts: 626
  • Gender: Male
  • :)
    • internetfazon on Facebook
    • @lukapaunovic on Twitter
    • Internet Fazoni
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 »


www.pegazhosting.com
█ Web Hosting | Reseller Hosting | Registracija Domena