4images Forum & Community
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 01, 2014, 07:45:37 AM

Login with username, password and session length
Search:     Advanced search
Check the new Tutorial subforum with helpfull guides and tutorials for modifications and tweaks.
Togle to toolbar
Translate this page with =>
Translate this page >
* Home Help Search Login Register
 
+  4images Forum & Community
|-+  4images Modifications / Modifikationen
| |-+  Mods & Plugins (Requests & Discussions) (Moderators: mawenzi, Rembrandt)
| | |-+  Change /index.php?template=somepage in /somepage.html ??
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Change /index.php?template=somepage in /somepage.html ??  (Read 3163 times)
wflorian
Newbie
*
Offline Offline

Posts: 36

Thank You
-Given: 1
-Receive: 0


View Profile
« on: December 25, 2008, 02:14:39 AM »

Is it possible to change the URL of additional pages I created. The URL right now is www.XXXX.com/index.php?template=somepage
Can I change that URL design to something more seo friendly? i already installed url mod, so thate categorie are shown like /catXXX.htm

Any ideas?

Thank you in advance.

Regards
Florian
Logged
om6acw
Full Member
***
Offline Offline

Posts: 187

Thank You
-Given: 1
-Receive: 1


View Profile WWW
« Reply #1 on: December 25, 2008, 02:23:36 AM »

Is it possible to change the URL of additional pages I created. The URL right now is www.XXXX.com/index.php?template=somepage
Can I change that URL design to something more seo friendly? i already installed url mod, so thate categorie are shown like /catXXX.htm

Any ideas?

Thank you in advance.

Regards
Florian

just try call your additional page like this www.your_domain.com/somepage.html
Logged

V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17849

Thank You
-Given: 47
-Receive: 556

mmm PHP...


View Profile WWW
« Reply #2 on: December 25, 2008, 02:24:43 AM »

add in your .htaccess:
1
RewriteRule ^somepage.html$  index.php?template=somepage [NC,L]
Logged

Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)
om6acw
Full Member
***
Offline Offline

Posts: 187

Thank You
-Given: 1
-Receive: 1


View Profile WWW
« Reply #3 on: December 25, 2008, 02:42:20 AM »

add in your .htaccess:
1
RewriteRule ^somepage.html$  index.php?template=somepage [NC,L]

I think if he has installed mod SEO friendly url he should have line like this
1
RewriteRule ^([a-zA-Z0-9_-]+)\.html$ index.php?template=$1&%{QUERY_STRING}
already in his .htaccess file but maybe I'm wrong.
Logged

wflorian
Newbie
*
Offline Offline

Posts: 36

Thank You
-Given: 1
-Receive: 0


View Profile
« Reply #4 on: December 25, 2008, 08:04:40 AM »

add in your .htaccess:
1
RewriteRule ^somepage.html$  index.php?template=somepage [NC,L]

I think if he has installed mod SEO friendly url he should have line like this
1
RewriteRule ^([a-zA-Z0-9_-]+)\.html$ index.php?template=$1&%{QUERY_STRING}
already in his .htaccess file but maybe I'm wrong.

Thank you!!

Actually both work great. I went with:
1
RewriteRule ^([a-zA-Z0-9_-]+)\.html$ index.php?template=$1&%{QUERY_STRING}

Now I am trying to redirect the old pages to the new url, the following code doesn't seem to work:

1
Redirect permanent /index.php?template=somepage http://www.XXXX.com/somepage.htm

Do you know why?
« Last Edit: December 26, 2008, 11:14:45 PM by wflorian » Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.132 seconds with 19 queries.