Skip to main content
codification
Source Link
Mayeenul Islam
  • 12.9k
  • 21
  • 85
  • 169

simple url Simple URL rewriting gone wrong

iI have this htaccess.htaccess file

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteRule ^feed/sejururi\.xml$ /feed/ [L,NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

What I want is if someone accesses the urlURL site.com/feed/sejururi.xmlexample.com/feed/sejururi.xml to show him the content of site.com/feedexample.com/feed.

However now the website shows a 404 not found error on site.com/feed/sejururi.xmlexample.com/feed/sejururi.xml.

simple url rewriting gone wrong

i have this htaccess file

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteRule ^feed/sejururi\.xml$ /feed/ [L,NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

What I want is if someone accesses the url site.com/feed/sejururi.xml to show him the content of site.com/feed

However now the website shows a 404 not found error on site.com/feed/sejururi.xml

Simple URL rewriting gone wrong

I have this .htaccess file

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteRule ^feed/sejururi\.xml$ /feed/ [L,NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

What I want is if someone accesses the URL example.com/feed/sejururi.xml to show him the content of example.com/feed.

However now the website shows a 404 not found error on example.com/feed/sejururi.xml.

Source Link
Mike
  • 107
  • 1
  • 4

simple url rewriting gone wrong

i have this htaccess file

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteRule ^feed/sejururi\.xml$ /feed/ [L,NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

What I want is if someone accesses the url site.com/feed/sejururi.xml to show him the content of site.com/feed

However now the website shows a 404 not found error on site.com/feed/sejururi.xml