How do I change the address in the Address bar ??

sbht

Joined: 2009-08-19
Posts: 7
Posted: Thu, 2009-08-20 20:36

I change the title and question in this post.

Hi,

How do I change the address in the address bar, like he did on his side?

Link: http://www2.ramoth.org/gallery/albums/

His is *./albums/ and mine is *./main.php?g2_itemId=115

Link: http://80.197.126.74/Gallery/main.php?g2_itemId=115

I use the theme: Gecko

How do I change the adress to be albums insted of main.php?g2_itemId=115 ???

Hope there is someone here on this forum who can help me.

Excuse my bad English but I come from Denmark.

Regards
Sune

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Thu, 2009-08-20 21:51

Looks like it's working, have you made changes since posting?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
sbht

Joined: 2009-08-19
Posts: 7
Posted: Fri, 2009-08-21 08:48

Hi Nivekiam,

I would just add some pictures on my photo albums, then they came in the middle :)

I change the title and question in this post.

Hi,

How do I change the address in the address bar, like he did on his side?

Link: http://www2.ramoth.org/gallery/albums/

His is *./albums/ and mine is *./main.php?g2_itemId=115

Link: http://80.197.126.74/Gallery/main.php?g2_itemId=115

I use the theme: Gecko

How do I change the adress to be albums insted of main.php?g2_itemId=115 ???

Hope there is someone here on this forum who can help me.

Excuse my bad English but I come from Denmark.

Regards
Sune

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Fri, 2009-08-21 10:16

The URL Rewrite plugin:
http://codex.gallery2.org/Gallery2:Modules:rewrite
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
sbht

Joined: 2009-08-19
Posts: 7
Posted: Fri, 2009-08-21 12:12

Hi,

Thanks nivekiam :)

Ehm but it still shows main.php between Gallery and Album :(

http://80.197.126.74/Gallery/main.php/Album/

Look at his gallery it shows gallery/albums/

How do I hide main.php from the adress bar ?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Fri, 2009-08-21 12:32

That's because you used pathinfo instead of mod_rewrite. To change that, go to Site Admin > Plugins and uninstall the URL Rewrite plugin. Then reinstall it (not deactivate reactivate, but uninstall, reinstall). Then choose mod_rewrite instead of pathinfo.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
sbht

Joined: 2009-08-19
Posts: 7
Posted: Fri, 2009-08-21 13:01