Jump to content

mod_rewrite-ის იმპორტი IIS-ში, დახმარება/კონსულტაცია მჭირდება


Recommended Posts

ფორუმელებო, კონსულტაცია/დახმარება მჭირდება.

მაქვს ეს კოდი 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>

 

Link to comment
Share on other sites

მე თვითონ ესენი არ ვიცი ვიკითხე და ეს მითხრეს. ლინკებიდან ამოვწერე ესენი ნახე აბა.

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

Link to comment
Share on other sites

მადლობა :)

ამან იმუშავა მაგრამ ცუდად. რანდომად განყოფილებებში შესვლისას ეკიდება ფორუმი., თემებში კი გადადის იდეაში.

+ Helicon APE-ც ვნახე, მსგავსი პროდუქტია, თუმცა იმან არ იმუშავა.

ჯამში ორივე ფასიანია და არასასურველი სოლუშენია იდეაში, თან მთლად კარგადაც ვერ მუშაობენ.

 

მაგიტომ მინდა mod_rewrite-ის კოდის კონვერტაცია IIS-ში რომ Native სოლუშენი იყოს.

Link to comment
Share on other sites

11 minutes ago, Power_VANO said:

მადლობა :)

ამან იმუშავა მაგრამ ცუდად. რანდომად განყოფილებებში შესვლისას ეკიდება ფორუმი., თემებში კი გადადის იდეაში.

+ Helicon APE-ც ვნახე, მსგავსი პროდუქტია, თუმცა იმან არ იმუშავა.

ჯამში ორივე ფასიანია და არასასურველი სოლუშენია იდეაში, თან მთლად კარგადაც ვერ მუშაობენ.

 

მაგიტომ მინდა mod_rewrite-ის კოდის კონვერტაცია IIS-ში რომ Native სოლუშენი იყოს.

ეხლა დავსერჩე და როგორც ვნახე ეწერა რო extension-ს გარეშე არ შეუძლიაო iis-ს ეგ. მეტი არ ვიცი. იმედია რამენაერად მოგვარდება.

Link to comment
Share on other sites

ეს მირჩიეს ინვიჟენის ფორუმზე ახლა: http://cbsa.com.br/tools/online-convert-htaccess-to-web-config.aspx

 

გავტესტავ, ცოტა ხანი ჩავარდნები ექნება ფორუმს ალბათ :D 

Link to comment
Share on other sites

არც ამან იმუშავა.

უფრო სწორად ნაწილობრივ იმუშავა ისიც magento ტიპის კოდმა, ტოპიკებისთვის მუშაობდა, განყოფილებებისთვის არა.

თუმცა საიტი ნელა მუშაობს ძალიან როცა ეგ რულები აქვს.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 დირექტივა არ ესმის, მიწერია პირველ პოსტში :)

Link to comment
Share on other sites

არა, მარტივად არ გამომდის მზა სოლუშენებით. სატესტო საიტს ავწევ და იმას უნდა ჩავუჯდე ე.ი.

ზოგ სოლუშენზე ტოპიკები მუშაობს, ზოგზე განყოფილებები, თუმცა ორივე ერთად არცერთზე :D 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

ეგეც ვნახე და არ შველის ეგეც :)

სატესტო საიტს ავაწყობ და იმაზე ვცდი სხვადასხვა ოპშენებს, პროდაქშენია ეს და ცალკე მე ვწვალობ, ცალკე იუზერებს ვაწვალებ.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.