Power_VANO Posted January 6, 2016 Share Posted January 6, 2016 ფორუმელებო, კონსულტაცია/დახმარება მჭირდება. მაქვს ეს კოდი mod_rewrite-ში: <IfModule mod_rewrite.c> Options -MultiViews RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteRule \.(js|css|jpeg|jpg|gif|png|ico)(\?|$) /404error.php [L,NC] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> საჭიროა, რომ დავაიმპორტო ეს ყველაფერი IIS-ში. პრობლემა ისაა, რომ RewriteBase IIS-ს არ ესმის, მაგის გარეშე კი Page not found ერორები აქვს სკრიპტს. გქონიათ იქნებ მსგავსი შემთხვევა ან იცოდეთ რა შეიძლება გაკეთდეს. როდესაც IIS-ში ცდილობ იმპორტს, ასეთი სახით შემოაქვს: <rewrite> <!--This directive was not converted because it is not supported by IIS: RewriteBase /.--> <rules> <rule name="Imported Rule 1" stopProcessing="true"> <match url="\.(js|css|jpeg|jpg|gif|png|ico)(\?|$)" /> <conditions> <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" /> </conditions> <action type="Rewrite" url="/404error.php" /> </rule> <rule name="Imported Rule 2" stopProcessing="true"> <match url="." ignoreCase="false" /> <conditions> <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" /> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" /> </conditions> <action type="Rewrite" url="/index.php" /> </rule> </rules> </rewrite> Quote Link to comment Share on other sites More sharing options...
მათე Posted January 6, 2016 Share Posted January 6, 2016 მე თვითონ ესენი არ ვიცი ვიკითხე და ეს მითხრეს. ლინკებიდან ამოვწერე ესენი ნახე აბა. You should consider IIS Mod-Rewrite ( micronovae.com/ModRewrite/ModRewrite.html ) . You will only have to copy your htaccess file to IIS root, without any modifications. http://micronovae.com/ModRewrite/ModRewrite.html Quote Link to comment Share on other sites More sharing options...
Power_VANO Posted January 6, 2016 Author Share Posted January 6, 2016 მადლობა ამან იმუშავა მაგრამ ცუდად. რანდომად განყოფილებებში შესვლისას ეკიდება ფორუმი., თემებში კი გადადის იდეაში. + Helicon APE-ც ვნახე, მსგავსი პროდუქტია, თუმცა იმან არ იმუშავა. ჯამში ორივე ფასიანია და არასასურველი სოლუშენია იდეაში, თან მთლად კარგადაც ვერ მუშაობენ. მაგიტომ მინდა mod_rewrite-ის კოდის კონვერტაცია IIS-ში რომ Native სოლუშენი იყოს. Quote Link to comment Share on other sites More sharing options...
მათე Posted January 6, 2016 Share Posted January 6, 2016 11 minutes ago, Power_VANO said: მადლობა ამან იმუშავა მაგრამ ცუდად. რანდომად განყოფილებებში შესვლისას ეკიდება ფორუმი., თემებში კი გადადის იდეაში. + Helicon APE-ც ვნახე, მსგავსი პროდუქტია, თუმცა იმან არ იმუშავა. ჯამში ორივე ფასიანია და არასასურველი სოლუშენია იდეაში, თან მთლად კარგადაც ვერ მუშაობენ. მაგიტომ მინდა mod_rewrite-ის კოდის კონვერტაცია IIS-ში რომ Native სოლუშენი იყოს. ეხლა დავსერჩე და როგორც ვნახე ეწერა რო extension-ს გარეშე არ შეუძლიაო iis-ს ეგ. მეტი არ ვიცი. იმედია რამენაერად მოგვარდება. Quote Link to comment Share on other sites More sharing options...
Power_VANO Posted January 6, 2016 Author Share Posted January 6, 2016 ეს მირჩიეს ინვიჟენის ფორუმზე ახლა: http://cbsa.com.br/tools/online-convert-htaccess-to-web-config.aspx გავტესტავ, ცოტა ხანი ჩავარდნები ექნება ფორუმს ალბათ Quote Link to comment Share on other sites More sharing options...
Power_VANO Posted January 6, 2016 Author Share Posted January 6, 2016 არც ამან იმუშავა. უფრო სწორად ნაწილობრივ იმუშავა ისიც magento ტიპის კოდმა, ტოპიკებისთვის მუშაობდა, განყოფილებებისთვის არა. თუმცა საიტი ნელა მუშაობს ძალიან როცა ეგ რულები აქვს. Quote Link to comment Share on other sites More sharing options...
Guest Posted January 6, 2016 Share Posted January 6, 2016 Download url rewrite from Microsoft web platform installer. Url rewrite module can auto create the web.config when you specify the rules via their ui. Quote Link to comment Share on other sites More sharing options...
Power_VANO Posted January 6, 2016 Author Share Posted January 6, 2016 2 minutes ago, Fuelen said: Download url rewrite from Microsoft web platform installer. Url rewrite module can auto create the web.config when you specify the rules via their ui. მაგას RewriteBase დირექტივა არ ესმის, მიწერია პირველ პოსტში Quote Link to comment Share on other sites More sharing options...
Power_VANO Posted January 6, 2016 Author Share Posted January 6, 2016 არა, მარტივად არ გამომდის მზა სოლუშენებით. სატესტო საიტს ავწევ და იმას უნდა ჩავუჯდე ე.ი. ზოგ სოლუშენზე ტოპიკები მუშაობს, ზოგზე განყოფილებები, თუმცა ორივე ერთად არცერთზე Quote Link to comment Share on other sites More sharing options...
Guest Posted January 6, 2016 Share Posted January 6, 2016 17 minutes ago, Power_VANO said: მაგას RewriteBase დირექტივა არ ესმის, მიწერია პირველ პოსტში The RewriteBase is auto-calculated based on where the rule is defined - so, if you define the rule under the /urls path in your site, that becomes the base for those rules. I am assuming that you put the rules in the root of your site. subfolderebshi daaimportire Quote Link to comment Share on other sites More sharing options...
Power_VANO Posted January 6, 2016 Author Share Posted January 6, 2016 ეგეც ვნახე და არ შველის ეგეც სატესტო საიტს ავაწყობ და იმაზე ვცდი სხვადასხვა ოპშენებს, პროდაქშენია ეს და ცალკე მე ვწვალობ, ცალკე იუზერებს ვაწვალებ. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.