404 Error When Advanced Rewriting is Enabled.

phpBB3 SEO Advanced mod Rewrite support forum.
This mods performs URL rewriting for phpBB, injecting forums and topic titles in their URLs.

Moderator: Moderators

404 Error When Advanced Rewriting is Enabled.

Postby thefallboy97 » Fri Aug 17, 2012 7:05 pm

Hi There.I'm using phpnuke with phpbb 3.0.10 installed.When i Enable Advanced Rewriting or another types of rewriting like simple or mixed mod i get 404 error.i installed my phpbb 3.0.10 in mysite.net/Forum Subdir but when i enable the rewriting mod it will change to for example for topics mysite.net/topic223.html but it shoule be like mysite.net/Forum/topic223.html .i tried to save the .htaccess file in both punlic_html and Forum Subdir But Nothing Changed.

this is my domain .htaccess:

Code: Select all

#####################################  Start htaccess sec code
<Files ~ "^\.ht">
Order allow,deny
Deny from all
</Files>
<Files config.php>
order allow,deny
deny from all
</Files>
#####################################  end htaccess sec code

#SetEnv TZ Asia/Tehran

<IFModule mod_rewrite.c>
RewriteEngine on
#####################################  Start Set Your Path
RewriteBase /
#####################################  End Set Your Path

#####################################  Start Injection/xss/Agent Blocking
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} ^.*(;|<|>|�|�|\)|%0A|%0D|%22|%27|%3C|%3E|).*(/\*|union|concat).* [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Anarchie [OR]
RewriteCond %{HTTP_USER_AGENT} ^ASPSeek [OR]
RewriteCond %{HTTP_USER_AGENT} ^attach [OR]
RewriteCond %{HTTP_USER_AGENT} ^autoemailspider [OR]
RewriteCond %{HTTP_USER_AGENT} ^Xaldon\ WebSpider [OR]
RewriteCond %{HTTP_USER_AGENT} ^Xenu [OR]
RewriteCond %{HTTP_USER_AGENT} ^Zeus.*Webster [OR]
RewriteCond %{HTTP_USER_AGENT} ^Zeus
RewriteRule ^.* - [F,L]
#####################################  End Injection/xss Blocking

RewriteRule ^index.html index.php

#Articles
RewriteRule ^article-([0-9]*)-([a-z]*)-([0-9]*)-([0-9]*).html modules.php?name=News&file=article-seo&sid=$1&mode=$2&order=$3&thold=$4
RewriteRule ^article-([0-9-]*)-([a-z]*)-([0-9]*)-([0-9]*).html([0-9#]*) modules.php?name=News&file=article-seo&thold=$1&mode=$2&order=$3&sid=$4$5
RewriteRule ^article-topic([0-9]*)-page([0-9]*).html modules.php?name=News&new_topic=$1&page=$2
RewriteRule ^article-category([0-9]*)-page([0-9]*).html modules.php?name=News&file=categories&op=newindex&catid=$1&page=$2
RewriteRule ^article-category-([0-9]*).html modules.php?name=News&file=categories&op=newindex&catid=$1
RewriteRule ^article-print-([0-9]*).html modules.php?name=News&file=print&sid=$1
RewriteRule ^article-friend-([0-9]*).html modules.php?name=News&file=friend&op=FriendSend&sid=$1
RewriteRule ^article-page-([0-9]*).html modules.php?name=News&page=$1
RewriteRule ^article([1-9][0-9]*).* modules.php?name=News&file=article-seo&sid=$1 [L]
RewriteRule ^([0-9]*)-([a-z]*) modules.php?name=News&file=article-seo&sid=$1 
RewriteRule ^([0-9]*)/([a-z]*) modules.php?name=News&file=article-seo&sid=$1 
#RewriteRule ^/([^/]*)\([1-9][0-9]*)  modules.php?name=News&file=article-seo&sid=$1  [L]
RewriteRule ^article-topic-([0-9]*).html modules.php?name=News&new_topic=$1
RewriteRule ^t-([1-9][0-9]*)-([^/]*).html modules.php?name=News&new_topic=$1
RewriteRule ^allnews.html modules.php?name=News&file=allindex
RewriteRule ^news.html modules.php?name=News

RewriteRule ^tags/([a-zA-Z0-9_.-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهیي]*)/page/([0-9]*)/ modules.php\?name=News&file=tags&tags=$1&page=$2
RewriteRule ^tags/([a-zA-Z0-9_.-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهیي]*)/page/([0-9]*) modules.php\?name=News&file=tags&tags=$1&page=$2
RewriteRule ^tags/([a-zA-Z0-9_.-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهیي]*)/ modules.php?name=News&file=tags&tags=$1
RewriteRule ^tags/([a-zA-Z0-9_.-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهیي]*) modules.php?name=News&file=tags&tags=$1

#Products
RewriteRule ^Products-([0-9]*)-([a-z]*)-([0-9]*)-([0-9]*).html modules.php?name=Products&file=product&sid=$1&mode=$2&order=$3&thold=$4
RewriteRule ^Products-([0-9-]*)-([a-z]*)-([0-9]*)-([0-9]*).html([0-9#]*) modules.php?name=Products&file=product&thold=$1&mode=$2&order=$3&sid=$4$5
RewriteRule ^Products-topic([0-9]*)-page([0-9]*).html modules.php?name=Products&new_topic=$1&page=$2
RewriteRule ^Products-category([0-9]*)-page([0-9]*).html modules.php?name=Products&file=categories&op=newindex&catid=$1&page=$2
RewriteRule ^Products-category-([0-9]*).html modules.php?name=Products&file=categories&op=newindex&catid=$1
RewriteRule ^Products-print-([0-9]*).html modules.php?name=Products&file=print&sid=$1
RewriteRule ^Products-friend-([0-9]*).html modules.php?name=Products&file=friend&op=FriendSend&sid=$1
RewriteRule ^Products-page-([0-9]*).html modules.php?name=Products&page=$1
RewriteRule ^Products-([1-9][0-9]*).* modules.php?name=Products&file=product&sid=$1 [L]
RewriteRule ^Products-([0-9]*)-([a-z]*) modules.php?name=Products&file=product&sid=$1 
RewriteRule ^Products/([0-9]*)/([a-z]*) modules.php?name=Products&file=product&sid=$1 
#RewriteRule ^/([^/]*)\([1-9][0-9]*)  modules.php?name=Products&file=product&sid=$1  [L]
RewriteRule ^Products-topic-([0-9]*).html modules.php?name=Products&new_topic=$1
RewriteRule ^Products-t-([1-9][0-9]*)-([^/]*).html modules.php?name=Products&new_topic=$1
RewriteRule ^allProducts.html modules.php?name=Products&file=allindex
RewriteRule ^Products.html modules.php?name=Products
RewriteRule ^Good-([0-9]*).html modules.php?name=cart&op=addgood&gdn=$1
RewriteRule ^Products-tags-([a-zA-Z0-9_.-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهیي]*).html modules.php?name=Products&file=tags&tags=$1
RewriteRule ^Products-tags-([a-zA-Z0-9_.-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهیي]*)-([0-9]*).html modules.php?name=Products&file=tags&tags=$1&page=$2
RewriteRule ^Products/tags/([a-zA-Z0-9_.-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهیي]*) modules.php?name=Products&file=tags&tags=$1
RewriteRule ^Products/tags/([a-zA-Z0-9_.-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهیي]*)/([0-9]*) modules.php?name=Products&file=tags&tags=$1&page=$2

#AvantGo
RewriteRule ^avantgo-print-([0-9]*).html modules.php?name=AvantGo&file=print&sid=$1
RewriteRule ^avantgo.html modules.php?name=AvantGo

#Content
RewriteRule ^content-([0-9]*)-page([0-9]*).html modules.php?name=Content&file=content&op=showpage&pid=$1&page=$2
RewriteRule ^content-cat-([0-9]*).html modules.php?name=Content&file=topic&op=list_pages_categories&cid=$1
RewriteRule ^content-([0-9]*).html modules.php?name=Content&file=content&op=showpage&pid=$1
RewriteRule ^content-([0-9]*)-ok.html modules.php?name=Content&file=content&op=showpage&pid=$1&ok=1
RewriteRule ^content-topics.html modules.php?name=Content&file=topic
RewriteRule ^content-topic-([0-9]*).html modules.php?name=Content&file=index&new_cat=$1
RewriteRule ^content-tags-([a-zA-Z0-9_.-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهیي]*).html modules.php?name=Content&file=tags&tags=$1
RewriteRule ^content-tags-([a-zA-Z0-9_.-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهیي]*)-([0-9]*).html modules.php?name=Content&file=tags&tags=$1&page=$2
RewriteRule ^content/tags/([a-zA-Z0-9_.-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهیي]*) modules.php?name=Content&file=tags&tags=$1
RewriteRule ^content/tags/([a-zA-Z0-9_.-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهیي]*)/([0-9]*) modules.php?name=Content&file=tags&tags=$1&page=$2
RewriteRule ^content.html modules.php?name=Content

#Downloads
RewriteRule ^downloadview-(comments|details|editorial)-([0-9]*)-([[:punct:]/:\-\'{}()._&a-zA-Z0-9+=]*).html modules.php?name=Downloads&d_op=viewdownload$1&lid=$2&ttitle=$3
RewriteRule ^download-mod-([0-9]*).html modules.php?name=Downloads&d_op=modifydownloadrequest&lid=$1
RewriteRule ^download-broken-([0-9]*).html modules.php?name=Downloads&d_op=brokendownload&lid=$1
RewriteRule ^download-shownew-([0-9]*).html modules.php?name=Downloads&d_op=NewDownloads&newdownloadshowdays=$1
RewriteRule ^download-seldate-([a-zA-Z0-9+]*).html modules.php?name=Downloads&d_op=NewDownloadsDate&selectdate=$1
RewriteRule ^download-file-([0-9]*).html modules.php?name=Downloads&d_op=getit&lid=$1
RewriteRule ^ratedownload-([0-9]*)-([[:punct:]/:\-\'{}()._&a-zA-Z0-9+=]*).html modules.php?name=Downloads&d_op=ratedownload&lid=$1&ttitle=$2
RewriteRule ^ratedownload-([0-9]*).html modules.php?name=Downloads&d_op=ratedownload&lid=$1
RewriteRule ^download-(TopRated|MostPopular)-([0-9]*)-(num|percent).html modules.php?name=Downloads&d_op=$1&ratenum=$2&ratetype=$3
RewriteRule ^downloads-(AddDownload|NewDownloads|MostPopular|TopRated).html modules.php?name=Downloads&d_op=$1
RewriteRule ^download([0-9]*)-orderby([a-zA-Z0-9+]*).html modules.php?name=Downloads&d_op=viewdownload&cid=$1&orderby=$2
RewriteRule ^download([0-9]*)-([0-9]*)-([a-zA-Z0-9+]*)-([0-9]*).html modules.php?name=Downloads&d_op=viewdownload&cid=$1&min=$2&orderby=$3&show=$4
RewriteRule ^download-search-([[:punct:]/:\-\'{}()._&a-zA-Z0-9+=]*)-([0-9]*)-([a-zA-Z0-9+]*)-([0-9]*).html modules.php?name=Downloads&d_op=search&query=$1&min=$2&orderby=$3&show=$4
RewriteRule ^download-search-([[:punct:]/:\-\'{}()._&a-zA-Z0-9+=]*)-([a-zA-Z0-9+]*).html modules.php?name=Downloads&d_op=search&query=$1&orderby=$2
RewriteRule ^download-search-([[:punct:]/:\-\'{}()._&a-zA-Z0-9+=]*).html modules.php?name=Downloads&d_op=search&query=$1
RewriteRule ^download-outside-([0-9]*).html modules.php?name=Downloads&d_op=outsidedownloadsetup&lid=$1
RewriteRule ^downloads-cat([0-9]*).html modules.php?name=Downloads&d_op=viewdownload&cid=$1
RewriteRule ^downloads.html modules.php?name=Downloads

#Encyclopedia
RewriteRule ^encyclopedia-([0-9]*)-page([0-9]*)-([a-zA-Z0-9_-]*).html modules.php?name=Encyclopedia&op=content&tid=$1&page=$2&query=$3
RewriteRule ^encyclopedia-([0-9]*)-page([0-9]*).html modules.php?name=Encyclopedia&op=content&tid=$1&page=$2
RewriteRule ^encyclopedia-([0-9]*)-([a-zA-Z0-9_-]*).html modules.php?name=Encyclopedia&op=content&tid=$1&query=$2
RewriteRule ^encyclopedia-([0-9]*).html modules.php?name=Encyclopedia&op=content&tid=$1
RewriteRule ^encyclopedia-list-([0-9]*).html modules.php?name=Encyclopedia&op=list_content&eid=$1
RewriteRule ^encyclopedia-terms([0-9]*)-([a-zA-Z0-9_-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهیي]*).html modules.php?name=Encyclopedia&op=terms&eid=$1&ltr=$2
RewriteRule ^encyclopedia-search-([a-zA-Z0-9_-]*).html modules.php?name=Encyclopedia&file=search&query=$1
RewriteRule ^encyclopedia-search.html modules.php?name=Encyclopedia&file=search
RewriteRule ^encyclopedia.html modules.php?name=Encyclopedia

#Feedback
RewriteRule ^feedback.html modules.php?name=Feedback

#FAQ
RewriteRule ^faq.html modules.php?name=FAQ
RewriteRule ^faq-([0-9]*)-([a-zA-Z0-9\+\&\-\/%[:punct:]\.\;]*).html modules.php?name=FAQ&myfaq=yes&id_cat=$1&categories=$2

#Forums
RewriteRule ^ftopicp-([0-9]*).html /Forum/viewtopic.php?p=$1 [R=301,L]
RewriteRule ^ftopict-([0-9]*).html /Forum/viewtopic.php?t=$1 [R=301,L]
RewriteRule ^modules.php?name=Forums&file=viewtopic&p=([0-9]*) /Forum/viewtopic.php?p=$1 [R=301,L]
RewriteRule ^modules.php?name=Forums&file=viewtopic&t=([0-9]*) /Forum/viewtopic.php?t=$1 [R=301,L]

#Journal
RewriteRule ^journal-search-([a-zA-Z0-9]*).html modules.php?name=Journal&file=search&bywhat=aid&exact=1&forwhat=$1
RewriteRule ^journal(search|delete|commentkill)-(bywhat|jid|onwhat)([a-zA-Z0-9]*)-(forwhat|ref)([a-zA-Z0-9]*).html modules.php?name=Journal&file=$1&$2=$3&$4=$5
RewriteRule ^journal-search-([0-9]*)-([a-zA-Z0-9_-]*).html modules.php?name=Journal&file=search&bywhat=$1&forwhat=$2
RewriteRule ^journal-([a-zA-Z0-9+]*)-(jid|onwhat|disp|op|disp)-([a-zA-Z0-9+]*).html modules.php?name=Journal&file=$1&$2=$3
RewriteRule ^journal-edit.html modules.php?name=Journal&file=edit
RewriteRule ^journal(file|op)-([a-zA-Z0-9]*).html modules.php?name=Journal&$1=$2
RewriteRule ^journal.html modules.php?name=Journal

#Members List
RewriteRule ^members.html modules.php?name=Members_List

#Private Messages
RewriteRule ^messages-post-([0-9]*).html modules.php?name=Private_Messages&file=index&mode=post&u=$1
RewriteRule ^messages-post-([0-9]*).html modules.php?name=Private_Messages&mode=post&u=$1
RewriteRule ^messages-new.html modules.php?name=Private_Messages&file=index&mode=post
RewriteRule ^messages-(sentbox|inbox|savebox|outbox).html modules.php?name=Private_Messages&file=index&folder=$1
RewriteRule ^messages.html modules.php?name=Private_Messages

#Recommend Us
RewriteRule ^recommend.html modules.php?name=Recommend_Us

#Reviews
RewriteRule ^reviews-new.html modules.php?name=Reviews&rop=write_review
RewriteRule ^reviews-preview.html modules.php?name=Reviews&rop=preview_review
RewriteRule ^reviews-([0-9]*)-page([0-9]*).html modules.php?name=Reviews&rop=showcontent&id=$1&page=$2
RewriteRule ^reviews-([0-9]*).html modules.php?name=Reviews&rop=showcontent&id=$1
RewriteRule ^reviews-comment-([0-9]*)-([[:punct:]?/:\-\'{}()._&a-zA-Z0-9+=\%]*).* modules.php?name=Reviews&rop=postcomment&id=$1&title=$2
RewriteRule ^reviews-([0-9]*)-delete.html modules.php?name=Reviews&rop=del_review&id_del=$1
RewriteRule ^reviews-([0-9]*)-edit.html modules.php?name=Reviews&rop=mod_review&id=$1
RewriteRule ^reviews-([0-9]*)-delcomment-([0-9]*).html modules.php?name=Reviews&rop=del_comment&cid=$1&id=$2
RewriteRule ^reviews-([a-zA-Z0-9]*)-orderby-([a-z]*)-([a-zA-Z]*).html modules.php?name=Reviews&rop=$1&field=$2&order=$3
RewriteRule ^reviews-sortby-([a-zA-Z0-9]*).html modules.php?name=Reviews&rop=$1
RewriteRule ^reviews.html modules.php?name=Reviews

#Search
RewriteRule ^search.html modules.php?name=Search

#Statistics
RewriteRule ^stats-([0-9]*)-([0-9]*)-([0-9]*).html modules.php?name=Statistics&op=DailyStats&year=$1&month=$2&date=$3
RewriteRule ^stats-([0-9]*)-([0-9]*).html modules.php?name=Statistics&op=MonthlyStats&year=$1&month=$2
RewriteRule ^stats-([0-9]*).html modules.php?name=Statistics&op=YearlyStats&year=$1
RewriteRule ^advstats.html modules.php?name=Statistics&op=Stats
RewriteRule ^stats.html modules.php?name=Statistics

#Stories Archive
RewriteRule ^archive-([0-9]*)-([0-9]*)-([a-zA-Z]*).* modules.php?name=Stories_Archive&sa=show_month&year=$1&month=$2&month_l=$3
RewriteRule ^archive-showall.html modules.php?name=Stories_Archive&sa=show_all
RewriteRule ^archive.html modules.php?name=Stories_Archive

#Surveys
RewriteRule ^survey-results-([0-9]*)-([a-z]*)-([0-9]*)-([0-9\-]*).html modules.php?name=Surveys&op=results&pollID=$1&mode=$2&order=$3&thold=$4
RewriteRule ^survey-results-([0-9]*).html modules.php?name=Surveys&op=results&pollID=$1
RewriteRule ^survey-([0-9]*).html modules.php?name=Surveys&pollID=$1
RewriteRule ^survey-comment-([0-9]*)-(tid|pid)-([0-9]*)-([a-z]*)-([0-9]*)-([0-9\-]*).html modules.php?name=Surveys&file=comments&pollID=$1&$2=$3&mode=$4&order=$5&thold=$6
RewriteRule ^survey-commreply-([0-9]*)-([0-9]*)-([a-z]*)-([0-9]*)-([0-9\-]*).html modules.php?name=Surveys&file=comments&op=Reply&pid=$1&pollID=$2&mode=$3&order=$4&thold=$5
RewriteRule ^survey-showreply-([0-9]*)-([0-9]*)-([0-9]*)-([a-z]*)-([0-9]*)-([0-9\-]*).html modules.php?name=Surveys&file=comments&op=showreply&tid=$1&pollID=$2&pid=$3&mode=$4&order=$5&thold=$6
RewriteRule ^survey-showreply-([0-9]*)-([a-z]*)-([0-9]*)-([0-9\-]*).html modules.php?name=Surveys&file=comments&op=showreply&tid=$1&mode=$2&order=$3&thold=$4
RewriteRule ^survey-comments.html modules.php?name=Surveys&file=comments
RewriteRule ^surveys.html modules.php?name=Surveys

#Submit_News
RewriteRule ^submit.html modules.php?name=Submit_News

#Topics
RewriteRule ^topics.html modules.php?name=Topics

#products-Topics
RewriteRule ^products-topics.html modules.php?name=Products_Topics

#Top10
RewriteRule ^top-([[:print:]]*).html modules.php?name=Top&zx=$1
RewriteRule ^top.html modules.php?name=Top

#Site_Map
RewriteRule ^Site_Map.html modules.php?name=Site_Map

#WebLinks
RewriteRule ^viewlinkcomments-([0-9]+)-([[:punct:]/:\-\'(){}.&=_a-zA-Z0-9\ ]*).html modules.php?name=Web_Links&l_op=viewlinkcomments&lid=$1&ttitle=$2
RewriteRule ^viewlinkdetails-([0-9]+)-([[:punct:]/:\-\'(){}.&=_a-zA-Z0-9\ ]*).html modules.php?name=Web_Links&l_op=viewlinkdetails&lid=$1&ttitle=$2
RewriteRule ^vieweditorial-([0-9]+)-([[:punct:]/:\-\'(){}.&=_a-zA-Z0-9\ ]*).html modules.php?name=Web_Links&l_op=viewlinkeditorial&lid=$1&ttitle=$2
RewriteRule ^modifylink-([0-9]+).html modules.php?name=Web_Links&l_op=modifylinkrequest&lid=$1
RewriteRule ^brokenlink-([0-9]+).html modules.php?name=Web_Links&l_op=brokenlink&lid=$1
RewriteRule ^outsidelink-([0-9]+).html modules.php?name=Web_Links&l_op=outsidelinksetup&lid=$1
RewriteRule ^linkop-(MostPopular|TopRated)-([0-9]+)-(num|percent).html modules.php?name=Web_Links&l_op=$1&ratenum=$2&ratetype=$3
RewriteRule ^newlinks-([0-9]+).html modules.php\?name=Web_Links&l_op=NewLinks&newlinkshowdays=$1
RewriteRule ^linksnew-([0-9]+).html modules.php?op=modload&name=Web_Links&file=index&l_op=NewLinksDate&selectdate=$1
RewriteRule ^linkop-(AddLink|MostPopular|NewLinks|RandomLink|TopRated).html modules.php?op=modload&name=Web_Links&file=index&l_op=$1
RewriteRule ^ratelink-([0-9]*)-([[:punct:]/:\-\'(){}.&=_a-zA-Z0-9\ ]*).html modules.php?op=modload&name=Web_Links&file=index&l_op=ratelink&lid=$1&ttitle=$2
RewriteRule ^viewlink-([0-9]*).html modules.php?name=Web_Links&l_op=visit&lid=$1
RewriteRule ^links-([0-9]*)-([a-zA-Z0-9]*).html modules.php?name=Web_Links&file=index&l_op=viewlink&cid=$1&orderby=$2
RewriteRule ^links-([0-9]*)-([0-9]*)-([a-zA-Z0-9]*)-([0-9]*).html modules.php?name=Web_Links&file=index&l_op=viewlink&cid=$1&min=$2&orderby=$3&show=$4
RewriteRule ^link-([0-9]*).html modules.php?name=Web_Links&l_op=viewlink&cid=$1
RewriteRule ^links-search-([a-zA-Z0-9]*)-([0-9]*)-orderby-([a-zA-Z]*)-([0-9]*) modules.php?name=Web_Links&l_op=search&query=$1&min=$2&orderby=$3&show=$4
RewriteRule ^links-search-([a-zA-Z0-9_-]*)-orderby-([a-zA-Z]*).html modules.php?name=Web_Links&l_op=search&query=$1&orderby=$2
RewriteRule ^links-search-([a-zA-Z0-9_-]*).html modules.php?name=Web_Links&l_op=search&query=$1
RewriteRule ^links.html modules.php?name=Web_Links

#Static Page
RewriteRule ^static-([0-9]*).html modules.php?name=static&op=viewpage&pid=$1 [L]
RewriteRule ^statics.html modules.php?name=static
RewriteRule ^static-tags-([a-zA-Z0-9_.-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهیي]*).html modules.php?name=static&file=tags&tags=$1
RewriteRule ^static-tags-([a-zA-Z0-9_.-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهیي]*)-([0-9]*).html modules.php?name=static&file=tags&tags=$1&page=$2
RewriteRule ^static/tags/([a-zA-Z0-9_.-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهیي]*) modules.php?name=static&file=tags&tags=$1
RewriteRule ^static/tags/([a-zA-Z0-9_.-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهیي]*)/([0-9]*) modules.php?name=static&file=tags&tags=$1&page=$2

#linkbox
RewriteRule ^linkbox.html modules.php?name=linkbox
RewriteRule ^special-links-([0-9]*)-([a-zA-Z0-9_-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهیي]*).html modules.php?name=linkbox&op=redirect&id=$1
RewriteRule ^daily-links-([0-9]*)-([a-zA-Z0-9_-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهیي]*).html modules.php?name=linkbox&op=redirect&id3=$1
RewriteRule ^propaganda-([0-9]*)-([a-zA-Z0-9_-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهیي]*).html modules.php?name=linkbox&op=redirect&id2=$1
RewriteRule ^special-links/([0-9]*)/([a-zA-Z0-9_-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهیي]*) modules.php?name=linkbox&op=redirect&id=$1
RewriteRule ^daily-links/([0-9]*)/([a-zA-Z0-9_-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهیي]*) modules.php?name=linkbox&op=redirect&id3=$1
RewriteRule ^propaganda/([0-9]*)/([a-zA-Z0-9_-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهیي]*) modules.php?name=linkbox&op=redirect&id2=$1

#AvantGo
RewriteRule ^News/m/page/([0-9]*)/ modules.php?name=AvantGo&page=$1
RewriteRule ^News/m/([0-9]*)/ modules.php?name=AvantGo&op=ReadStory&sid=$1
RewriteRule ^News/m/ modules.php?name=AvantGo
RewriteRule ^News/m modules.php?name=AvantGo

#cart
RewriteRule ^Shopping-cart/([0-9]*)/ modules.php?name=cart&op=addgood&gdn=$1
RewriteRule ^Shopping-cart/code/([0-9]*)/ modules.php?name=cart&cid=$1
RewriteRule ^Shopping-cart/ modules.php?name=cart

#Content
RewriteRule ^contents/([0-9]*)/page/([0-9]*)/ modules.php?name=Content&file=content&op=showpage&pid=$1&page=$2
RewriteRule ^contents/categorie/([0-9]*)/ modules.php?name=Content&file=topic&op=list_pages_categories&cid=$1
RewriteRule ^contents/([0-9]*)/ modules.php?name=Content&file=content&op=showpage&pid=$1
RewriteRule ^contents/([0-9]*)/ modules.php?name=Content&file=content&pid=$1
RewriteRule ^contents/topics/ modules.php?name=Content&file=topic
RewriteRule ^contents/topics/([0-9]*)/ modules.php?name=Content&file=index&new_cat=$1
RewriteRule ^contents/topics/([0-9]*)/page/([0-9]*)/ modules.php?name=Content&file=index&new_cat=$1&page=$2
RewriteRule ^contents/tags/([a-zA-Z0-9_.-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهیي]*) modules.php?name=Content&file=tags&tags=$1
RewriteRule ^contents/tags/([a-zA-Z0-9_.-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهیي]*)/([0-9]*) modules.php?name=Content&file=tags&tags=$1&page=$2
RewriteRule ^contents/page/([0-9]*)/ modules.php?name=Content&page=$1
RewriteRule ^contents/ modules.php?name=Content
RewriteRule ^contents modules.php?name=Content

#Downloads
RewriteRule ^downloadview/(comments|details|editorial)/([0-9]*)/([a-zA-Z0-9_-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهیي]*)/ modules.php?name=Downloads&d_op=viewdownload$1&lid=$2&ttitle=$3
RewriteRule ^downloads/mod/([0-9]*)/ modules.php?name=Downloads&d_op=modifydownloadrequest&lid=$1
RewriteRule ^downloads/broken/([0-9]*)/ modules.php?name=Downloads&d_op=brokendownload&lid=$1
RewriteRule ^downloads/shownew/([0-9]*)/ modules.php?name=Downloads&d_op=NewDownloads&newdownloadshowdays=$1
RewriteRule ^downloads/seldate/([a-zA-Z0-9+]*)/ modules.php?name=Downloads&d_op=NewDownloadsDate&selectdate=$1
RewriteRule ^downloads/file/([0-9]*)/ modules.php?name=Downloads&d_op=getit&lid=$1
RewriteRule ^ratedownloads/([0-9]*)/([a-zA-Z0-9_-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهیي]*)/ modules.php?name=Downloads&d_op=ratedownload&lid=$1&ttitle=$2
RewriteRule ^ratedownloads/([0-9]*)/ modules.php?name=Downloads&d_op=ratedownload&lid=$1
RewriteRule ^downloads/(TopRated|MostPopular)/([0-9]*)/(num|percent)/ modules.php?name=Downloads&d_op=$1&ratenum=$2&ratetype=$3
RewriteRule ^downloads/(AddDownload|NewDownloads|MostPopular|TopRated)/ modules.php?name=Downloads&d_op=$1
RewriteRule ^downloads/cat/([0-9]*)/orderby/([a-zA-Z0-9+]*)/ modules.php?name=Downloads&d_op=viewdownload&cid=$1&orderby=$2
RewriteRule ^downloads/cat/([0-9]*)/([a-zA-Z0-9+]*)/page-([0-9]*)/ modules.php?name=Downloads&d_op=viewdownload&cid=$1&orderby=$2&page=$3
RewriteRule ^downloads/search/([a-zA-Z0-9_-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهیي]*)/([a-zA-Z0-9+]*)/page-([0-9]*)/ modules.php?name=Downloads&d_op=search&query=$1&orderby=$2&page=$3
RewriteRule ^downloads/search/([a-zA-Z0-9_-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهیي]*)/([a-zA-Z0-9+]*)/ modules.php?name=Downloads&d_op=search&query=$1&orderby=$2
RewriteRule ^downloads/search/([a-zA-Z0-9_-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهیي]*)/page-([0-9]*)/ modules.php?name=Downloads&d_op=search&query=$1&page=$2
RewriteRule ^downloads/search/([a-zA-Z0-9_-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهیي]*)/ modules.php?name=Downloads&d_op=search&query=$1
RewriteRule ^downloads/search/ modules.php?name=Downloads&d_op=search
RewriteRule ^downloads/outside/([0-9]*)/ modules.php?name=Downloads&d_op=outsidedownloadsetup&lid=$1
RewriteRule ^downloads/cat/([0-9]*)/page-([0-9]*)/ modules.php?name=Downloads&d_op=viewdownload&cid=$1&page=$2
RewriteRule ^downloads/cat/([0-9]*)/ modules.php?name=Downloads&d_op=viewdownload&cid=$1
RewriteRule ^downloads/ modules.php?name=Downloads
RewriteRule ^downloads modules.php?name=Downloads

#Encyclopedia
RewriteRule ^encyclopedia/([0-9]*)/page/([0-9]*)/([a-zA-Z0-9_-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهیي]*)/ modules.php?name=Encyclopedia&op=content&tid=$1&page=$2&query=$3
RewriteRule ^encyclopedia/([0-9]*)/page/([0-9]*)/ modules.php?name=Encyclopedia&op=content&tid=$1&page=$2
RewriteRule ^encyclopedia/([0-9]*)/([a-zA-Z0-9_-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهیي]*)/ modules.php?name=Encyclopedia&op=content&tid=$1&query=$2
RewriteRule ^encyclopedia/([0-9]*)/ modules.php?name=Encyclopedia&op=content&tid=$1
RewriteRule ^encyclopedia/list/([0-9]*)/ modules.php?name=Encyclopedia&op=list_content&eid=$1
RewriteRule ^encyclopedia/terms/([0-9]*)/([a-zA-Z0-9_-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهیي]*)/ modules.php?name=Encyclopedia&op=terms&eid=$1&ltr=$2
RewriteRule ^encyclopedia/search/([a-zA-Z0-9_-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهیي]*)/ modules.php?name=Encyclopedia&file=search&query=$1
RewriteRule ^encyclopedia/search/ modules.php?name=Encyclopedia&file=search
RewriteRule ^encyclopedia/ modules.php?name=Encyclopedia
RewriteRule ^encyclopedia modules.php?name=Encyclopedia

#Feedback
RewriteRule ^feedback/ modules.php?name=Feedback
RewriteRule ^feedback modules.php?name=Feedback

#FAQ
RewriteRule ^FAQ/([0-9]*)/([a-zA-Z0-9_-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهیي\+\&\-\/%[:punct:]\.\;]*)/ modules.php?name=FAQ&myfaq=yes&id_cat=$1&categories=$2
RewriteRule ^FAQ/ modules.php?name=FAQ
RewriteRule ^FAQ modules.php?name=FAQ

#Forums
RewriteRule ^ftopicp-([0-9]*).html /Forum/viewtopic.php?p=$1 [R=301,L]
RewriteRule ^ftopict-([0-9]*).html /Forum/viewtopic.php?t=$1 [R=301,L]
RewriteRule ^modules.php?name=Forums&file=viewtopic&p=([0-9]*) /Forum/viewtopic.php?p=$1 [R=301,L]
RewriteRule ^modules.php?name=Forums&file=viewtopic&t=([0-9]*) /Forum/viewtopic.php?t=$1 [R=301,L]

#Journal
RewriteRule ^journal-search-([a-zA-Z0-9]*).html modules.php?name=Journal&file=search&bywhat=aid&exact=1&forwhat=$1
RewriteRule ^journal(search|delete|commentkill)-(bywhat|jid|onwhat)([a-zA-Z0-9]*)-(forwhat|ref)([a-zA-Z0-9]*).html modules.php?name=Journal&file=$1&$2=$3&$4=$5
RewriteRule ^journal-search-([0-9]*)-([a-zA-Z0-9_-]*).html modules.php?name=Journal&file=search&bywhat=$1&forwhat=$2
RewriteRule ^journal-([a-zA-Z0-9+]*)-(jid|onwhat|disp|op|disp)-([a-zA-Z0-9+]*).html modules.php?name=Journal&file=$1&$2=$3
RewriteRule ^journal-edit.html modules.php?name=Journal&file=edit
RewriteRule ^journal(file|op)-([a-zA-Z0-9]*).html modules.php?name=Journal&$1=$2
RewriteRule ^journal.html modules.php?name=Journal

#MT-Gallery
RewriteRule ^gallery/([0-9]*)/ modules.php?name=MT-Gallery&pa=ShowGAL&gal=yes&id_cat=$1
RewriteRule ^gallery/picture/([0-9]*)/ modules.php?name=MT-Gallery&pa=showpic&gal=yes&id=$1
RewriteRule ^gallery/ modules.php?name=MT-Gallery
RewriteRule ^gallery modules.php?name=MT-Gallery

#Articles/News
RewriteRule ^News/([0-9]*)/([a-z]*)/([0-9]*)/([0-9]*)/ modules.php?name=News&file=article-seo&sid=$1&mode=$2&order=$3&thold=$4
RewriteRule ^News/topic/([0-9]*)/page/([0-9]*)/ modules.php?name=News&new_topic=$1&page=$2
RewriteRule ^News/print/([0-9]*)/ modules.php?name=News&file=print&sid=$1
RewriteRule ^News/pdf/([0-9]*)/ modules.php?name=News&file=pdf&sid=$1
RewriteRule ^News/friend/([0-9]*)/ modules.php?name=News&file=friend&op=FriendSend&sid=$1
RewriteRule ^News/page/([0-9]*)/ modules.php?name=News&page=$1
RewriteRule ^([0-9]*)/ modules.php?name=News&file=article-seo&sid=$1 [L]
RewriteRule ^News/topic/([0-9]*)/ modules.php?name=News&new_topic=$1
RewriteRule ^tags/([a-zA-Z0-9_.-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهیي]*)/page/([0-9]*)/ modules.php?name=News&file=tags&tags=$1&page=$2
RewriteRule ^tags/([a-zA-Z0-9_.-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهیي]*)/ modules.php?name=News&file=tags&tags=$1
RewriteRule ^News/ modules.php?name=News
RewriteRule ^News modules.php?name=News

#Products
RewriteRule ^Products/([0-9]*)/([a-z]*)/([0-9]*)/([0-9]*)/ modules.php?name=Products&file=product&sid=$1&mode=$2&order=$3&thold=$4
RewriteRule ^Products/topic/([0-9]*)/page/([0-9]*)/ modules.php?name=Products&product_topic=$1&page=$2
RewriteRule ^Products/print/([0-9]*)/ modules.php?name=Products&file=print&sid=$1
RewriteRule ^Products/friend/([0-9]*)/ modules.php?name=Products&file=friend&op=FriendSend&sid=$1
RewriteRule ^Products/page/([0-9]*)/ modules.php?name=Products&page=$1
RewriteRule ^Products/([0-9]*)/ modules.php?name=Products&file=product&sid=$1 [L]
RewriteRule ^Products/topic/([0-9]*)/ modules.php?name=Products&product_topic=$1
RewriteRule ^Products/tags/([a-zA-Z0-9_.-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهیي]*)/page/([0-9]*)/ modules.php?name=News&file=tags&tags=$1&page=$2
RewriteRule ^Products/tags/([a-zA-Z0-9_.-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهیي]*)/ modules.php?name=News&file=tags&tags=$1
RewriteRule ^Products/ modules.php?name=Products
RewriteRule ^Products modules.php?name=Products

#products-Topics
RewriteRule ^products-topics/ modules.php?name=Products_Topics
RewriteRule ^products-topics modules.php?name=Products_Topics

#Recommend Us
RewriteRule ^recommendus/sitesent/ modules.php?name=Recommend_Us&op=SiteSent
RewriteRule ^recommendus/ modules.php?name=Recommend_Us
RewriteRule ^recommendus modules.php?name=Recommend_Us

#Search
RewriteRule ^search/stop/ modules.php?name=Search&qlen=1
RewriteRule ^search/stories-search/([a-zA-Z0-9+_-]*)/([0-9]*)/([a-zA-Z0-9+_-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهيي]*)/([0-9]*)/([0-9]*)/ modules.php?name=Search&op=stories_search&author=$1&topic=$2&query=$3&days=$4&page=$5
RewriteRule ^search/stories-search/([a-zA-Z0-9+_-]*)/([0-9]*)/([a-zA-Z0-9+_-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهيي]*)/([0-9]*)/ modules.php?name=Search&op=stories_search&author=$1&topic=$2&query=$3&days=$4
RewriteRule ^search/stories-search/ modules.php?name=Search&op=stories_search
RewriteRule ^search/content-search/([a-zA-Z0-9+_-]*)/([0-9]*)/([a-zA-Z0-9+_-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهيي]*)/([0-9]*)/([0-9]*)/ modules.php?name=Search&op=content-search&author=$1&contenttopic=$2&query=$3&days=$4&page=$5
RewriteRule ^search/content-search/([a-zA-Z0-9+_-]*)/([0-9]*)/([a-zA-Z0-9+_-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهيي]*)/([0-9]*)/ modules.php?name=Search&op=content-search&author=$1&contenttopic=$2&query=$3&days=$4
RewriteRule ^search/content-search/ modules.php?name=Search&op=content-search
RewriteRule ^search/comments-search/([a-zA-Z0-9+_-]*)/([a-zA-Z0-9+_-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهيي]*)/([0-9]*)/([0-9]*)/ modules.php?name=Search&op=comments_search&comments_pos=$1&query=$2&days=$3&page=$4
RewriteRule ^search/comments-search/([a-zA-Z0-9+_-]*)/([a-zA-Z0-9+_-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهيي]*)/([0-9]*)/ modules.php?name=Search&op=comments_search&comments_pos=$1&query=$2&days=$3
RewriteRule ^search/comments-search/ modules.php?name=Search&op=comments_search
RewriteRule ^search/users-search/([a-zA-Z0-9+_-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهيي]*)/([0-9]*)/([0-9]*)/ modules.php?name=Search&op=users_search&query=$1&days=$2&page=$3
RewriteRule ^search/users-search/([a-zA-Z0-9+_-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهيي]*)/([0-9]*)/ modules.php?name=Search&op=users_search&query=$1&days=$2
RewriteRule ^search/users-search/ modules.php?name=Search&op=users_search
RewriteRule ^search/Forums-search/([a-zA-Z0-9+_-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهيي]*)/([0-9]*)/([0-9]*)/ modules.php?name=Search&op=Forums_search&query=$1&days=$2&page=$3
RewriteRule ^search/Forums-search/([a-zA-Z0-9+_-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهيي]*)/([0-9]*)/ modules.php?name=Search&op=Forums_search&query=$1&days=$2
RewriteRule ^search/Forums-search/ modules.php?name=Search&op=Forums_search
RewriteRule ^search/staticpage-search/([a-zA-Z0-9+_-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهيي]*)/([0-9]*)/([0-9]*)/ modules.php?name=Search&op=staticpage_search&query=$1&days=$2&page=$3
RewriteRule ^search/staticpage-search/([a-zA-Z0-9+_-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهيي]*)/([0-9]*)/ modules.php?name=Search&op=staticpage_search&query=$1&days=$2
RewriteRule ^search/staticpage-search/ modules.php?name=Search&op=staticpage_search
RewriteRule ^search/([a-zA-Z0-9+_-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهيي]*)/topic/([0-9]*)/ modules.php?name=Search&query=$1&topic=$2
RewriteRule ^search/ modules.php?name=Search
RewriteRule ^search modules.php?name=Search

#Site_Map
RewriteRule ^Site_Map/ modules.php?name=Site_Map
RewriteRule ^Site_Map modules.php?name=Site_Map

#Static Page
RewriteRule ^statics/([0-9]*)/ modules.php?name=static&op=viewpage&pid=$1 [L]
RewriteRule ^statics/tags/([a-zA-Z0-9_.-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهیي]*)/page/([0-9]*)/ modules.php?name=static&file=tags&tags=$1&page=$2
RewriteRule ^statics/tags/([a-zA-Z0-9_.-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهیي]*)/ modules.php?name=static&file=tags&tags=$1
RewriteRule ^statics/page/([0-9]*)/ modules.php?name=static&page=$1
RewriteRule ^statics/ modules.php?name=static
RewriteRule ^statics modules.php?name=static

#Statistics
RewriteRule ^statistics/([0-9]*)/([0-9]*)/([0-9]*)/ modules.php?name=Statistics&op=DailyStats&year=$1&month=$2&date=$3
RewriteRule ^statistics/([0-9]*)/([0-9]*)/ modules.php?name=Statistics&op=MonthlyStats&year=$1&month=$2
RewriteRule ^statistics/([0-9]*)/ modules.php?name=Statistics&op=YearlyStats&year=$1
RewriteRule ^advstatistics/ modules.php?name=Statistics&op=Stats
RewriteRule ^statistics/ modules.php?name=Statistics
RewriteRule ^statistics modules.php?name=Statistics

#Stories Archive
RewriteRule ^archive/([0-9]*)/([0-9]*)/([a-zA-Z0-9_.-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهیي]*)/page/([0-9]*) modules.php?name=Stories_Archive&sa=show_month&year=$1&month=$2&month_l=$3&page=$4
RewriteRule ^archive/([0-9]*)/([0-9]*)/([a-zA-Z0-9_.-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهیي]*)/ modules.php?name=Stories_Archive&sa=show_month&year=$1&month=$2&month_l=$3
RewriteRule ^archive/showall/page/([0-9]*)/ modules.php?name=Stories_Archive&sa=show_all&page=$1
RewriteRule ^archive/showall/ modules.php?name=Stories_Archive&sa=show_all
RewriteRule ^archive/ modules.php?name=Stories_Archive
RewriteRule ^archive modules.php?name=Stories_Archive

#Reviews
#RewriteRule ^reviews-new.html modules.php?name=Reviews&rop=write_review
#RewriteRule ^reviews-preview.html modules.php?name=Reviews&rop=preview_review
#RewriteRule ^reviews-([0-9]*)-page([0-9]*).html modules.php?name=Reviews&rop=showcontent&id=$1&page=$2
#RewriteRule ^reviews-([0-9]*).html modules.php?name=Reviews&rop=showcontent&id=$1
#RewriteRule ^reviews-comment-([0-9]*)-([[:punct:]?/:\-\'{}()._&a-zA-Z0-9+=\%]*).* modules.php?name=Reviews&rop=postcomment&id=$1&title=$2
#RewriteRule ^reviews-([0-9]*)-delete.html modules.php?name=Reviews&rop=del_review&id_del=$1
#RewriteRule ^reviews-([0-9]*)-edit.html modules.php?name=Reviews&rop=mod_review&id=$1
#RewriteRule ^reviews-([0-9]*)-delcomment-([0-9]*).html modules.php?name=Reviews&rop=del_comment&cid=$1&id=$2
#RewriteRule ^reviews-([a-zA-Z0-9]*)-orderby-([a-z]*)-([a-zA-Z]*).html modules.php?name=Reviews&rop=$1&field=$2&order=$3
#RewriteRule ^reviews-sortby-([a-zA-Z0-9]*).html modules.php?name=Reviews&rop=$1
#RewriteRule ^reviews.html modules.php?name=Reviews

#Submit_News
RewriteRule ^submit/ modules.php?name=Submit_News
RewriteRule ^submit modules.php?name=Submit_News

#Surveys
RewriteRule ^surveys/results/([0-9]*)/ modules.php?name=Surveys&op=pollResults&pollID=$1&sindex=yes
RewriteRule ^surveys/hresults/([0-9]*)/ modules.php?name=Surveys&op=pollResults&pollID=$1
RewriteRule ^surveys/([0-9]*)/ modules.php?name=Surveys&op=pollMain&pollID=$1
RewriteRule ^surveys/ modules.php?name=Surveys
RewriteRule ^surveys modules.php?name=Surveys

#Top10
RewriteRule ^tops/ modules.php?name=Top
RewriteRule ^tops modules.php?name=Top

#Topics
RewriteRule ^topics/ modules.php?name=Topics
RewriteRule ^topics modules.php?name=Topics

#WebLinks
RewriteRule ^viewlinkcomments-([0-9]+)-([[:punct:]/:\-\'(){}.&=_a-zA-Z0-9\ ]*).html modules.php?name=Web_Links&l_op=viewlinkcomments&lid=$1&ttitle=$2
RewriteRule ^viewlinkdetails-([0-9]+)-([[:punct:]/:\-\'(){}.&=_a-zA-Z0-9\ ]*).html modules.php?name=Web_Links&l_op=viewlinkdetails&lid=$1&ttitle=$2
RewriteRule ^vieweditorial-([0-9]+)-([[:punct:]/:\-\'(){}.&=_a-zA-Z0-9\ ]*).html modules.php?name=Web_Links&l_op=viewlinkeditorial&lid=$1&ttitle=$2
RewriteRule ^modifylink-([0-9]+).html modules.php?name=Web_Links&l_op=modifylinkrequest&lid=$1
RewriteRule ^brokenlink-([0-9]+).html modules.php?name=Web_Links&l_op=brokenlink&lid=$1
RewriteRule ^outsidelink-([0-9]+).html modules.php?name=Web_Links&l_op=outsidelinksetup&lid=$1
RewriteRule ^linkop-(MostPopular|TopRated)-([0-9]+)-(num|percent).html modules.php?name=Web_Links&l_op=$1&ratenum=$2&ratetype=$3
RewriteRule ^newlinks-([0-9]+).html modules.php\?name=Web_Links&l_op=NewLinks&newlinkshowdays=$1
RewriteRule ^linksnew-([0-9]+).html modules.php?op=modload&name=Web_Links&file=index&l_op=NewLinksDate&selectdate=$1
RewriteRule ^linkop-(AddLink|MostPopular|NewLinks|RandomLink|TopRated).html modules.php?op=modload&name=Web_Links&file=index&l_op=$1
RewriteRule ^ratelink-([0-9]*)-([[:punct:]/:\-\'(){}.&=_a-zA-Z0-9\ ]*).html modules.php?op=modload&name=Web_Links&file=index&l_op=ratelink&lid=$1&ttitle=$2
RewriteRule ^viewlink-([0-9]*).html modules.php?name=Web_Links&l_op=visit&lid=$1
RewriteRule ^links-([0-9]*)-([a-zA-Z0-9]*).html modules.php?name=Web_Links&file=index&l_op=viewlink&cid=$1&orderby=$2
RewriteRule ^links-([0-9]*)-([0-9]*)-([a-zA-Z0-9]*)-([0-9]*).html modules.php?name=Web_Links&file=index&l_op=viewlink&cid=$1&min=$2&orderby=$3&show=$4
RewriteRule ^link-([0-9]*).html modules.php?name=Web_Links&l_op=viewlink&cid=$1
RewriteRule ^links-search-([a-zA-Z0-9]*)-([0-9]*)-orderby-([a-zA-Z]*)-([0-9]*) modules.php?name=Web_Links&l_op=search&query=$1&min=$2&orderby=$3&show=$4
RewriteRule ^links-search-([a-zA-Z0-9_-]*)-orderby-([a-zA-Z]*).html modules.php?name=Web_Links&l_op=search&query=$1&orderby=$2
RewriteRule ^links-search-([a-zA-Z0-9_-]*).html modules.php?name=Web_Links&l_op=search&query=$1
RewriteRule ^links.html modules.php?name=Web_Links

#Your_Account
RewriteRule ^users/edit-user/ modules.php?name=Your_Account&op=edituser
RewriteRule ^users/edit-home/ modules.php?name=Your_Account&op=edithome
RewriteRule ^users/edit-comments/ modules.php?name=Your_Account&op=editcomm
RewriteRule ^users/change-theme/ modules.php?name=Your_Account&op=chgtheme
RewriteRule ^users/delete-user/ modules.php?name=Your_Account&op=delete
RewriteRule ^users/logout/ modules.php?name=Your_Account&op=logout
RewriteRule ^users/register/ modules.php?name=Your_Account&op=new_user
RewriteRule ^users/recovery-password/ modules.php?name=Your_Account&op=pass_lost
RewriteRule ^users/Show-Cookies-Redirect/ modules.php?name=Your_Account&op=ShowCookiesRedirect
RewriteRule ^users/Show-Cookies/ modules.php?name=Your_Account&op=ShowCookies
RewriteRule ^users/delete-user/([0-9]*)/([a-zA-Z0-9+_-]*)/ modules.php?name=Your_Account&op=deleteconfirm&uid=$1&code=$2
RewriteRule ^users/change-deed/([0-9]*)/([0-9]*)/ modules.php?name=Your_Account&op=change_kerdar&user_id=$1&kerdar=$2
RewriteRule ^users/theme-([a-zA-Z0-9+_-اآبپتثجچحخدذرزژسشصضطظعغفقكکگلمنوهيي]*)/ modules.php?name=Your_Account&theme=$1
RewriteRule ^users/saved/ modules.php?name=Your_Account&op=saved
RewriteRule ^users/stop/ modules.php?name=Your_Account&stop=1
RewriteRule ^users/check-username/ modules.php?name=Your_Account&op=check_username
RewriteRule ^users/check-email/ modules.php?name=Your_Account&op=check_email
RewriteRule ^users/activate/([a-zA-Z0-9+_-]*)/([a-zA-Z0-9+_-]*)/ modules.php?name=Your_Account&op=activate&username=$1&check_num=$2
RewriteRule ^users/avatarlist/ modules.php?name=Your_Account&op=avatarlist
RewriteRule ^users/broadcast/ modules.php?name=Your_Account&op=broadcast
RewriteRule ^users/changemail/ modules.php?name=Your_Account&op=changemail
RewriteRule ^users/gfxadminimage/ modules.php?name=Your_Account&op=gfxadminimage
RewriteRule ^users/gfx/ modules.php?name=Your_Account&op=gfx
RewriteRule ^users/login/ modules.php?name=Your_Account&op=login
RewriteRule ^users/mailpasswd/ modules.php?name=Your_Account&op=mailpasswd
RewriteRule ^users/my_headlines/ modules.php?name=Your_Account&op=my_headlines
RewriteRule ^users/DeleteCookies/ modules.php?name=Your_Account&op=DeleteCookies
RewriteRule ^users/DeleteCookies2/ modules.php?name=Your_Account&op=DeleteCookies2
RewriteRule ^users/([a-zA-Z0-9+_-]*)/ modules.php?name=Your_Account&op=userinfo&username=$1
RewriteRule ^users/ modules.php?name=Your_Account
RewriteRule ^users modules.php?name=Your_Account

#RSS
RewriteRule ^rss/top/ backend.php?t=top [L]
RewriteRule ^rss/Categories/([0-9]*)-([^/]*)/ backend.php?t=topics&topicid=$1 [L]
RewriteRule ^rss/ backend.php [L]
RewriteRule ^rss backend.php [L]

</IFModule>



and this is the .htaccess code that mod gave it to me:
Code: Select all

    # Lines That should already be in your .htacess
    <Files "config.php">
    Order Allow,Deny
    Deny from All
    </Files>
    <Files "common.php">
    Order Allow,Deny
    Deny from All
    </Files>

    # You may need to un-comment the following lines
    # Options +FollowSymlinks
    # To make sure that rewritten dir or file (/|.html) will not load dir.php in case it exist
    # Options -MultiViews
    # REMEBER YOU ONLY NEED TO STARD MOD REWRITE ONCE
    RewriteEngine On
    # Uncomment the statement below if you want to make use of
    # HTTP authentication and it does not already work.
    # This could be required if you are for example using PHP via Apache CGI.
    # RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
    # REWRITE BASE
    RewriteBase /
    # HERE IS A GOOD PLACE TO FORCE CANONICAL DOMAIN
    # RewriteCond %{HTTP_HOST} !^www\.mobilewonders\.net$ [NC]
    # RewriteRule ^(.*)$ http://www.mobilewonders.net/$1 [QSA,L,R=301]

    # DO NOT GO FURTHER IF THE REQUESTED FILE / DIR DOES EXISTS
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule . - [L]
    #####################################################
    # PHPBB SEO REWRITE RULES ALL MODES
    #####################################################
    # AUTHOR : dcz www.phpbb-seo.com
    # STARTED : 01/2006
    #################################
    # FORUMS PAGES
    ###############
    # FORUM INDEX
    RewriteRule ^forum\.html$ /Forum/index.php [QSA,L,NC]
    # FORUM ALL MODES
    RewriteRule ^(forum|[a-z0-9_-]*-f)([0-9]+)/?(page([0-9]+)\.html)?$ /Forum/viewforum.php?f=$2&start=$4 [QSA,L,NC]
    # TOPIC WITH VIRTUAL FOLDER ALL MODES
    RewriteRule ^(forum|[a-z0-9_-]*-f)([0-9]+)/(topic|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.html$ /Forum/viewtopic.php?f=$2&t=$4&start=$6 [QSA,L,NC]
    # TOPIC WITHOUT FORUM ID & DELIM ALL MODES
    RewriteRule ^([a-z0-9_-]*)/?(topic|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.html$ /Forum/viewtopic.php?forum_uri=$1&t=$3&start=$5 [QSA,L,NC]
    # PHPBB FILES ALL MODES
    RewriteRule ^resources/[a-z0-9_-]+/(thumb/)?([0-9]+)$ /Forum/download/file.php?id=$2&t=$1 [QSA,L,NC]
    # PROFILES THROUGH USERNAME
    RewriteRule ^member/([^/]+)/?$ /Forum/memberlist.php?mode=viewprofile&un=$1 [QSA,L,NC]
    # USER MESSAGES THROUGH USERNAME
    RewriteRule ^member/([^/]+)/(topics|posts)/?(page([0-9]+)\.html)?$ /Forum/search.php?author=$1&sr=$2&start=$4 [QSA,L,NC]
    # GROUPS ALL MODES
    RewriteRule ^(group|[a-z0-9_-]*-g)([0-9]+)(-([0-9]+))?\.html$ /Forum/memberlist.php?mode=group&g=$2&start=$4 [QSA,L,NC]
    # POST
    RewriteRule ^post([0-9]+)\.html$ /Forum/viewtopic.php?p=$1 [QSA,L,NC]
    # ACTIVE TOPICS
    RewriteRule ^active-topics(-([0-9]+))?\.html$ /Forum/search.php?search_id=active_topics&start=$2&sr=topics [QSA,L,NC]
    # UNANSWERED TOPICS
    RewriteRule ^unanswered(-([0-9]+))?\.html$ /Forum/search.php?search_id=unanswered&start=$2&sr=topics [QSA,L,NC]
    # NEW POSTS
    RewriteRule ^newposts(-([0-9]+))?\.html$ /Forum/search.php?search_id=newposts&start=$2&sr=topics [QSA,L,NC]
    # UNREAD POSTS
    RewriteRule ^unreadposts(-([0-9]+))?\.html$ /Forum/search.php?search_id=unreadposts&start=$2 [QSA,L,NC]
    # THE TEAM
    RewriteRule ^the-team\.html$ /Forum/memberlist.php?mode=leaders [QSA,L,NC]
    # HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES

    # FORUM WITHOUT ID & DELIM ALL MODES
    # THESE THREE LINES MUST BE LOCATED AT THE END OF YOUR HTACCESS TO WORK PROPERLY
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^([a-z0-9_-]+)/?(page([0-9]+)\.html)?$ /Forum/viewforum.php?forum_uri=$1&start=$3 [QSA,L,NC]
    # FIX RELATIVE PATHS : FILES
    RewriteRule ^Forum/.+/(style\.php|ucp\.php|mcp\.php|faq\.php|download/file.php)$ /Forum/$1 [QSA,L,NC,R=301]
    # FIX RELATIVE PATHS : IMAGES
    RewriteRule ^Forum/.+/(styles/.*|images/.*)/$ /Forum/$1 [QSA,L,NC,R=301]
    # END PHPBB PAGES
    #####################################################



what should i do to get rid of this problem?thanks and sorry for my bad english.
Last edited by thefallboy97 on Sat Aug 18, 2012 8:58 am, edited 2 times in total.
thefallboy97
 
Posts: 5
Joined: Fri Aug 17, 2012 6:54 pm

Advertisement

Re: 404 Error When Advanced Rewriting is Enabled.

Postby Stephen26 » Sat Aug 18, 2012 5:12 am

Please check your phpBB Server and Cookie settings.

Try putting the .htaccess file in your phpBB folder this way:

Administration Control Panel -> phpBB SEO -> .htaccess -> Scroll down -> More Options: Yes -> Submit -> Scroll down again -> .htaccess location:
Put the .htaccess in the phpBB folder ? -> Yes -> Submit. Now copy and paste the generated code in the .htaccess file in your phpBB folder and clear the board cache.
I install and configure phpBB-SEO (and other mods) for a fair price and very fast. If you are interested simply send me a private message.
Stephen26
phpBB SEO Team
phpBB SEO Team
 
Posts: 434
Joined: Mon May 03, 2010 7:06 am

Re: 404 Error When Advanced Rewriting is Enabled.

Postby thefallboy97 » Sat Aug 18, 2012 5:56 am

Thanks For Your Reply.
My Phpbb Server and Cookie Setting Were Correct.
And About putting .htaccess file in phpbb folder when i make more options yes and click on submit just two new options appear:
1-RegEx Right Slash
2-RegEx Left Slash
and there is no .htaccess location option.
what should i do?
thefallboy97
 
Posts: 5
Joined: Fri Aug 17, 2012 6:54 pm

Re: 404 Error When Advanced Rewriting is Enabled.

Postby Stephen26 » Sat Aug 18, 2012 6:08 pm

Try changing
Code: Select all
RewriteBase /
to
Code: Select all
RewriteBase /Forum/
I install and configure phpBB-SEO (and other mods) for a fair price and very fast. If you are interested simply send me a private message.
Stephen26
phpBB SEO Team
phpBB SEO Team
 
Posts: 434
Joined: Mon May 03, 2010 7:06 am

Re: 404 Error When Advanced Rewriting is Enabled.

Postby thefallboy97 » Sat Aug 18, 2012 6:50 pm

Thanks.I Tried Your Solution And After it I Got 404 Error in Whole Website.(PHP-Nuke) And In Phpbb Too!
is there any way to solve this problem?
thefallboy97
 
Posts: 5
Joined: Fri Aug 17, 2012 6:54 pm

Re: 404 Error When Advanced Rewriting is Enabled.

Postby thefallboy97 » Sun Aug 19, 2012 8:56 am

i also have this .htaccess file in my Forum/ Subdir.
Code: Select all
    # Lines That should already be in your .htacess
    <Files "config.php">
        Order Allow,Deny
        Deny from All
    </Files>
    <Files "common.php">
        Order Allow,Deny
        Deny from All
    </Files>

    # You may need to un-comment the following lines
    # Options +FollowSymlinks
    # To make sure that rewritten dir or file (/|.html) will not load dir.php in case it exist
    # Options -MultiViews
    # REMEBER YOU ONLY NEED TO STARD MOD REWRITE ONCE
    RewriteEngine On
    # Uncomment the statement below if you want to make use of
    # HTTP authentication and it does not already work.
    # This could be required if you are for example using PHP via Apache CGI.
    # RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
    # REWRITE BASE
    RewriteBase /Forum/
    # HERE IS A GOOD PLACE TO FORCE CANONICAL DOMAIN
    # RewriteCond %{HTTP_HOST} !^localhost$ [NC]
    # RewriteRule ^(.*)$ http://localhost/$1 [QSA,L,R=301]

    # DO NOT GO FURTHER IF THE REQUESTED FILE / DIR DOES EXISTS
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule . - [L]
    #####################################################
    # PHPBB SEO REWRITE RULES ALL MODES
    #####################################################
    # AUTHOR : dcz www.phpbb-seo.com
    # STARTED : 01/2006
    #################################
    # FORUMS PAGES

    ###############
    # FORUM INDEX REWRITERULE WOULD STAND HERE IF USED. "forum" REQUIRES TO BE SET AS FORUM INDEX
    # RewriteRule ^forum\.html$ index.php [QSA,L,NC]
    # FORUM ALL MODES

    RewriteRule ^(forum|[a-z0-9_-]*-f)([0-9]+)/?(page([0-9]+)\.html)?$ viewforum.php?f=$2&start=$4 [QSA,L,NC]
    RewriteRule ^(forum|[a-z0-9_-]*-f)([0-9]+)(-([0-9]+))?\.html$ viewforum.php?f=$2&start=$4 [QSA,L,NC]

    # TOPIC WITH VIRTUAL FOLDER ALL MODES
    RewriteRule ^(forum|[a-z0-9_-]*-f)([0-9]+)/(topic|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.html$ viewtopic.php?f=$2&t=$4&start=$6 [QSA,L,NC]

    # TOPIC WITHOUT FORUM ID & DELIM ALL MODES
    RewriteRule ^([a-z0-9_-]*)/?(topic|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.html$ viewtopic.php?forum_uri=$1&t=$3&start=$5 [QSA,L,NC]

    # PHPBB FILES ALL MODES
    RewriteRule ^resources/[a-z0-9_-]+/(thumb/)?([0-9]+)$ download/file.php?id=$2&t=$1 [QSA,L,NC]

    # USER MESSAGES THROUGH USERNAME
    # USER MESSAGES ALL MODES WITH ID
    RewriteRule ^(member|[a-z0-9_-]*-u)([0-9]+)-(topics|posts)(-([0-9]+))?\.html$ search.php?author_id=$2&sr=$3&start=$5 [QSA,L,NC]
    RewriteRule ^member/([^/]+)/(topics|posts)/?(page([0-9]+)\.html)?$ search.php?author=$1&sr=$2&start=$4 [QSA,L,NC]
    RewriteRule ^member/([^/]+)/(topics|posts)/?(page([0-9]+))/?$ search.php?author=$1&sr=$2&start=$4 [QSA,L,NC]

    # PROFILES THROUGH USERNAME
    # PROFILES ALL MODES WITH ID
    RewriteRule ^member/([^/]+)/?$ memberlist.php?mode=viewprofile&un=$1 [QSA,L,NC]
    RewriteRule ^(member|[a-z0-9_-]*-u)([0-9]+)\.html$ memberlist.php?mode=viewprofile&u=$2 [QSA,L,NC]
    RewriteRule ^(member|[a-z0-9_-]*-u)([0-9]+)/?$ memberlist.php?mode=viewprofile&u=$2 [QSA,L,NC]

    # GROUPS ALL MODES
    RewriteRule ^(group|[a-z0-9_-]*-g)([0-9]+)(-([0-9]+))?\.html$ memberlist.php?mode=group&g=$2&start=$4 [QSA,L,NC]

    # POST
    RewriteRule ^post([0-9]+)\.html$ viewtopic.php?p=$1 [QSA,L,NC]

    # ACTIVE TOPICS
    RewriteRule ^active-topics(-([0-9]+))?\.html$ search.php?search_id=active_topics&start=$2&sr=topics [QSA,L,NC]

    # UNANSWERED TOPICS
    RewriteRule ^unanswered(-([0-9]+))?\.html$ search.php?search_id=unanswered&start=$2&sr=topics [QSA,L,NC]

    # NEW POSTS
    RewriteRule ^newposts(-([0-9]+))?\.html$ search.php?search_id=newposts&start=$2&sr=topics [QSA,L,NC]

    # UNREAD POSTS
    RewriteRule ^unreadposts(-([0-9]+))?\.html$ search.php?search_id=unreadposts&start=$2 [QSA,L,NC]

    # THE TEAM
    RewriteRule ^the-team\.html$ memberlist.php?mode=leaders [QSA,L,NC]
    # HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES

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

    # FIX RELATIVE PATHS : FILES
    RewriteRule ^.+/(style\.php|ucp\.php|mcp\.php|faq\.php|download/file.php)$ $1 [QSA,L,NC,R=301]

    # FIX RELATIVE PATHS : IMAGES
    RewriteRule ^.+/(styles/.*|images/.*)/$ $1 [QSA,L,NC,R=301]
    # END PHPBB PAGES
    #####################################################



but when i change this code with code that mod gave to me the problem is still remaining.
thefallboy97
 
Posts: 5
Joined: Fri Aug 17, 2012 6:54 pm

Re: 404 Error When Advanced Rewriting is Enabled.

Postby thefallboy97 » Mon Aug 20, 2012 8:56 am

My Problem Solved By Disabling Virtual Root Option.Thanks For Your Replies. :wink:
thefallboy97
 
Posts: 5
Joined: Fri Aug 17, 2012 6:54 pm

Re: 404 Error When Advanced Rewriting is Enabled.

Postby efglobal » Sun Nov 18, 2012 1:20 pm

thefallboy97 wrote:My Problem Solved By Disabling Virtual Root Option.Thanks For Your Replies. :wink:


Hi there, I have done that, but still it is not working, don't know what is going wrong.
efglobal
 
Posts: 10
Joined: Wed Nov 14, 2012 4:31 pm


Return to Advanced SEO URL

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 6 guests