no 301 redirect index.php

Discussions and support about the different URL Rewriting techniques for phpBB.

Moderator: Moderators

no 301 redirect index.php

Postby rbb » Wed Feb 20, 2008 3:41 am

Not sure how I can disable this

Reason is I want to use the style= tag in the url for a wap compatible version of my site using a style designed for it

Forum sections and topics let me use the ?style= just fine but I tried mydomain.com/index.php?style=# and mydomain.com/?style=# and they both just redirect to mydomain.com

Would be nice if it could just not redirect mydomain.com/?style=# but still everything else

Any help is appreciated :D
Last edited by rbb on Wed Feb 20, 2008 12:21 pm, edited 1 time in total.
rbb
 
Posts: 9
Joined: Tue Oct 09, 2007 4:20 pm

Advertisement

Postby rbb » Wed Feb 20, 2008 3:49 am

I should be editing this section in the zero dup index.php right? I'm using the premod

Code: Select all
// www.phpBB-SEO.com SEO TOOLKIT BEGIN -> Zero dupe
$phpbb_seo->page_url = $phpbb_seo->seo_path['phpbb_urlR'] . $phpbb_seo->seo_static['index'] . $phpbb_seo->seo_ext['index'] . (!empty($_SID) ? '?sid=' . $_SID : '');
if ( $user->data['is_registered'] ) {
   $phpbb_seo->seo_cond( !isset($_GET['explain']) );
   $phpbb_seo->seo_cond( (utf8_strpos($phpbb_seo->seo_path['uri'], 'mark=') === FALSE));
}
if ( !$phpbb_seo->seo_opt['zero_dupe']['strict'] ) { // strict mode is here a bit faster
   if ( !$user->data['is_registered'] ) {
      $phpbb_seo->seo_cond( isset($_GET['explain']), false, 'do' );
      $phpbb_seo->seo_cond( (utf8_strpos($phpbb_seo->seo_path['uri'], 'mark=') !== FALSE), false, 'do');
   }
   if ( !empty($phpbb_seo->seo_static['index']) ) {
      $phpbb_seo->seo_cond( (utf8_strpos($phpbb_seo->seo_path['uri'], $phpbb_seo->seo_static['index']) === FALSE), false, 'do');
   } else {
      $phpbb_seo->seo_cond( (utf8_strpos($phpbb_seo->seo_path['uri'], 'index.' . $phpEx) !== FALSE), false, 'do' );
   }
}
$phpbb_seo->seo_chk_dupe($phpbb_seo->seo_path['uri'], $phpbb_seo->page_url);
// www.phpBB-SEO.com SEO TOOLKIT END -> Zero dupe


But I don't know what you do beyond that
rbb
 
Posts: 9
Joined: Tue Oct 09, 2007 4:20 pm

Postby SeO » Thu Feb 21, 2008 10:42 am

SeO
Admin
Admin
 
Posts: 6333
Joined: Wed Mar 15, 2006 9:41 pm

Postby rbb » Thu Feb 21, 2008 12:37 pm

I guess it would've helped for me to post this in the right section, and to search first :oops:

Thanks
rbb
 
Posts: 9
Joined: Tue Oct 09, 2007 4:20 pm


Return to phpBB mod Rewrite

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 3 guests