phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
how disable rewrite for some url

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite  » Advanced SEO URL
::  
Author Message
ALEXIS



Joined: 27 Nov 2006
Posts: 3

how disable rewrite for some urlPosted: Tue Jan 22, 2008 9:18 pm    Post subject: how disable rewrite for some url

I have some virtual folder, but with adv seo rewrite is not works, say "request forum not find"

How disable some virtual folder?

"$this->seo_stop_files" is not work, because I not use a file, I use virtual folder:

.htaccesss

Code:
RewriteRule ^(.*)/(.*).html$ sayfa.php?bolum=$1&sayfa=$2 [QSA,L,NC]
RewriteRule ^(.*)/$ sayfa.php?sayfa=$1 [QSA,L,NC]


Note: My system is work 0.4.0RC4, but not work 0.4.0



work for disable this:

Code:
#RewriteRule ^[a-z0-9_-]+/?(sayfa([0-9]+)\.html)?$ /viewforum.php?start=$2 [QSA,L,NC]
Back to top
mdster



Joined: 23 Jan 2008
Posts: 5

how disable rewrite for some urlPosted: Wed Jan 23, 2008 7:06 am    Post subject: Re: how disable rewrite for some url

.htaccess files work best in largest to smallest url (match) sequence...

if you want to have an application using the url of:

domain.com/myvirtualfolder/

then that specific url you are trying to isolate must come above any global matches-
good grief, this url rewrite:

RewriteRule ^(.*)/(.*).html$

will match EVERYTHING that as anycategory/anypage.html

So, if you have special need for anycategory/sayfa1, then that match Must come above that line.

My question now is, why does this line exist in your .htaccess file?:
Code:

RewriteRule ^[a-z0-9_-]+/?(sayfa([0-9]+)\.html)?$ /viewforum.php?start=$2 [QSA,L,NC]


Why do you want anything with folder/sayfa1.html going to viewforum.php?

Isn't Sayfa your virtual special folder-application? If so, then that line in your htaccess has always been in error (and should not be there) - This latest mod, simply told you it was wrong.
----------------------------
Muscle Building - Workouts
Back to top
angelside



Joined: 20 Oct 2007
Posts: 1

how disable rewrite for some urlPosted: Wed Jan 23, 2008 9:31 am    Post subject: Re: how disable rewrite for some url

My disabled line is fully:

Code:
# FORUM WITHOUT ID & DELIM
# THESE FOUR LINES MUST BE LOCATED AT THE END OF YOUR HTACCESS TO WORK PROPERLY
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
#RewriteRule ^[a-z0-9_-]+/?(page([0-9]+)\.html)?$ /viewforum.php?start=$2 [QSA,L,NC]
# END PHPBB PAGES


This .htaaccess create by rewrite mod to cache directory, but htaccess already have this line:

Code:
RewriteRule ^[a-z0-9_-]*-f([0-9]+)/?(page([0-9]+)\.html)?$ /viewforum.php?f=$1&start=$3 [QSA,L,NC]


And this url is work: test-forum-1-f2/sayfa1.html
Back to top
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite  » Advanced SEO URL
Page 1 of 1

Navigation Similar Topics

Jump to: