Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,148,894 members, 7,802,877 topics. Date: Saturday, 20 April 2024 at 12:56 AM

Help With Htacess Multiple Rewrite Rules - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Help With Htacess Multiple Rewrite Rules (1241 Views)

Rewrite With Arrow Functions / I Need Details Of Using Multiple Classes In A Java File. / Android Development - Multiple Screen Support (2) (3) (4)

(1) (Reply) (Go Down)

Help With Htacess Multiple Rewrite Rules by youngscholar(m): 8:39am On Jan 10, 2018
RewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^([^/]*)$ /topics.php?url=$1 [L]

RewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^([^/]*)$ /marktet.php?url=$1 [L]

How can I make both working..Only the first one works..Please assist.
Re: Help With Htacess Multiple Rewrite Rules by LegendsCoded(m): 2:38am On Jan 11, 2018
youngscholar:

RewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^([^/]*)$ /topics.php?url=$1 [L]

RewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^([^/]*)$ /marktet.php?url=$1 [L]

How can I make both working..Only the first one works..Please assist.


Try this RewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^([^/]*)$ /topics.php?url=$1 [L]
RewriteRule ^([^/]*)$ /marktet.php?url=$1 [L]
Re: Help With Htacess Multiple Rewrite Rules by youngscholar(m): 11:06am On Jan 13, 2018
LegendsCoded:


Try this RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]*)$ /topics.php?url=$1 [L] RewriteRule ^([^/]*)$ /marktet.php?url=$1 [L]

The first workingm...The second is not.
Re: Help With Htacess Multiple Rewrite Rules by youngscholar(m): 11:07am On Jan 13, 2018
LegendsCoded:


Try this RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]*)$ /topics.php?url=$1 [L] RewriteRule ^([^/]*)$ /marktet.php?url=$1 [L]

The first one working...The second is not.
Re: Help With Htacess Multiple Rewrite Rules by LegendsCoded(m): 12:14am On Jan 15, 2018
youngscholar:



The first one working...The second is not.

I'll give u a code tomorrow
Re: Help With Htacess Multiple Rewrite Rules by hypazmedia: 10:18am On Jan 15, 2018
RewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^([^/]*)$ /topics.php?url=$1 [L]

RewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^([^/]*)$ /market.php?url=$1 [L]
Re: Help With Htacess Multiple Rewrite Rules by hypazmedia: 10:19am On Jan 15, 2018
youngscholar:
RewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^([^/]*)$ /topics.php?url=$1 [L]

RewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^([^/]*)$ /marktet.php?url=$1 [L]

How can I make both working..Only the first one works..Please assist.
RewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^([^/]*)$ /topics.php?url=$1 [L]

RewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^([^/]*)$ /market.php?url=$1 [L]
Re: Help With Htacess Multiple Rewrite Rules by youngscholar(m): 2:07pm On Jan 22, 2018
hypazmedia:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]*)$ /topics.php?url=$1 [L]
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]*)$ /market.php?url=$1 [L]

No difference na
Re: Help With Htacess Multiple Rewrite Rules by benjibabs(m): 5:44am On Jan 23, 2018
youngscholar:
RewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^([^/]*)$ /topics.php?url=$1 [L]

RewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^([^/]*)$ /marktet.php?url=$1 [L]

How can I make both working..Only the first one works..Please assist.

What are you trying to achieve with the rewrite rule?
Re: Help With Htacess Multiple Rewrite Rules by youngscholar(m): 6:39pm On Jan 23, 2018
benjibabs:


What are you trying to achieve with the rewrite rule?


I wanna make both work
Re: Help With Htacess Multiple Rewrite Rules by yorex2011: 6:38am On Jan 24, 2018
The two rules are the same... You are trying to rewrite the same condition to two different places at the same time?

Like saying rewrite index.html to index.php
Then rewrite index.html to another.php

You didn't even specify what you're trying to achieve.

Eg I want to redirect this url pattern to this place, then this url pattern to another place..

(1) (Reply)

I Need A Mobile App Developer / Join Medical Digital Consulting (medico) Project As Freelance Programmer / Need Help Starting A Loan App

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 14
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.