Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
deleted 1 characters in body
Source Link
AlexV
  • 179
  • 1
  • 2
  • 16

I'm trying to do another SEO system with PHP/.htaccess...

I need the following rules to apply:

  1. Must catch all URLs that do not end with an extension (www.foo.com --> catch | www.foo.com/catch-me --> catch | www.foo.com/dont-catch.me --> don't catch).
  2. Must catch all URLs that end with .php* (.php, .php4...) (thwawthat are the exceptions to rule #1).
  3. All rules must only apply in some directories and not in their subdirectories (/ and /framework so far).
  4. The htaccess must send the typed URL in a GET value so I can work with it in PHP.

Any mod-rewrite wizard can help me?

Edit:

OK after reading the posts suggested, I came up with this but I think its stuck in a loop... Anyone can help?

<IfModule mod_rewrite.c> RewriteEngine On # 1 RewriteCond %{REQUEST_FILENAME} !\.[^/]+$ [OR] # 2 RewriteCond %{REQUEST_FILENAME} \.php.*$ # 4 RewriteRule ^(.*)$ http://localhost/seo-urls/seo-urls-mapper.php%3Frequested=$1?%{QUERY_STRING} </IfModule> 

Since I want to complete this during my Xmas holidays, I'm adding a bounty :) Thanks for your help and happy holidays!

I'm trying to do another SEO system with PHP/.htaccess...

I need the following rules to apply:

  1. Must catch all URLs that do not end with an extension (www.foo.com --> catch | www.foo.com/catch-me --> catch | www.foo.com/dont-catch.me --> don't catch).
  2. Must catch all URLs that end with .php* (.php, .php4...) (thwaw are the exceptions to rule #1).
  3. All rules must only apply in some directories and not in their subdirectories (/ and /framework so far).
  4. The htaccess must send the typed URL in a GET value so I can work with it in PHP.

Any mod-rewrite wizard can help me?

Edit:

OK after reading the posts suggested, I came up with this but I think its stuck in a loop... Anyone can help?

<IfModule mod_rewrite.c> RewriteEngine On # 1 RewriteCond %{REQUEST_FILENAME} !\.[^/]+$ [OR] # 2 RewriteCond %{REQUEST_FILENAME} \.php.*$ # 4 RewriteRule ^(.*)$ http://localhost/seo-urls/seo-urls-mapper.php%3Frequested=$1?%{QUERY_STRING} </IfModule> 

Since I want to complete this during my Xmas holidays, I'm adding a bounty :) Thanks for your help and happy holidays!

I'm trying to do another SEO system with PHP/.htaccess...

I need the following rules to apply:

  1. Must catch all URLs that do not end with an extension (www.foo.com --> catch | www.foo.com/catch-me --> catch | www.foo.com/dont-catch.me --> don't catch).
  2. Must catch all URLs that end with .php* (.php, .php4...) (that are the exceptions to rule #1).
  3. All rules must only apply in some directories and not in their subdirectories (/ and /framework so far).
  4. The htaccess must send the typed URL in a GET value so I can work with it in PHP.

Any mod-rewrite wizard can help me?

Edit:

OK after reading the posts suggested, I came up with this but I think its stuck in a loop... Anyone can help?

<IfModule mod_rewrite.c> RewriteEngine On # 1 RewriteCond %{REQUEST_FILENAME} !\.[^/]+$ [OR] # 2 RewriteCond %{REQUEST_FILENAME} \.php.*$ # 4 RewriteRule ^(.*)$ http://localhost/seo-urls/seo-urls-mapper.php%3Frequested=$1?%{QUERY_STRING} </IfModule> 

Since I want to complete this during my Xmas holidays, I'm adding a bounty :) Thanks for your help and happy holidays!

Bounty Ended with danlefree's answer chosen by AlexV
Bounty Started worth 50 reputation by AlexV
added 122 characters in body
Source Link
AlexV
  • 179
  • 1
  • 2
  • 16

I'm trying to do another SEO system with PHP/.htaccess...

I need the following rules to apply:

  1. Must catch all URLs that do not end with an extension (www.foo.com --> catch | www.foo.com/catch-me --> catch | www.foo.com/dont-catch.me --> don't catch).
  2. Must catch all URLs that end with .php* (.php, .php4...) (thwaw are the exceptions to rule #1).
  3. All rules must only apply in some directories and not in their subdirectories (/ and /framework so far).
  4. The htaccess must send the typed URL in a GET value so I can work with it in PHP.

Any mod-rewrite wizard can help me?

Edit:

OK after reading the posts suggested, I came up with this but I think its stuck in a loop... Anyone can help?

<IfModule mod_rewrite.c> RewriteEngine On # 1 RewriteCond %{REQUEST_FILENAME} !\.[^/]+$ [OR] # 2 RewriteCond %{REQUEST_FILENAME} \.php.*$ # 4 RewriteRule ^(.*)$ http://localhost/seo-urls/seo-urls-mapper.php%3Frequested=$1?%{QUERY_STRING} </IfModule> 

Since I want to complete this during my Xmas holidays, I'm adding a bounty :) Thanks for your help and happy holidays!

I'm trying to do another SEO system with PHP/.htaccess...

I need the following rules to apply:

  1. Must catch all URLs that do not end with an extension (www.foo.com --> catch | www.foo.com/catch-me --> catch | www.foo.com/dont-catch.me --> don't catch).
  2. Must catch all URLs that end with .php* (.php, .php4...) (thwaw are the exceptions to rule #1).
  3. All rules must only apply in some directories and not in their subdirectories (/ and /framework so far).
  4. The htaccess must send the typed URL in a GET value so I can work with it in PHP.

Any mod-rewrite wizard can help me?

Edit:

OK after reading the posts suggested, I came up with this but I think its stuck in a loop... Anyone can help?

<IfModule mod_rewrite.c> RewriteEngine On # 1 RewriteCond %{REQUEST_FILENAME} !\.[^/]+$ [OR] # 2 RewriteCond %{REQUEST_FILENAME} \.php.*$ # 4 RewriteRule ^(.*)$ http://localhost/seo-urls/seo-urls-mapper.php%3Frequested=$1?%{QUERY_STRING} </IfModule> 

I'm trying to do another SEO system with PHP/.htaccess...

I need the following rules to apply:

  1. Must catch all URLs that do not end with an extension (www.foo.com --> catch | www.foo.com/catch-me --> catch | www.foo.com/dont-catch.me --> don't catch).
  2. Must catch all URLs that end with .php* (.php, .php4...) (thwaw are the exceptions to rule #1).
  3. All rules must only apply in some directories and not in their subdirectories (/ and /framework so far).
  4. The htaccess must send the typed URL in a GET value so I can work with it in PHP.

Any mod-rewrite wizard can help me?

Edit:

OK after reading the posts suggested, I came up with this but I think its stuck in a loop... Anyone can help?

<IfModule mod_rewrite.c> RewriteEngine On # 1 RewriteCond %{REQUEST_FILENAME} !\.[^/]+$ [OR] # 2 RewriteCond %{REQUEST_FILENAME} \.php.*$ # 4 RewriteRule ^(.*)$ http://localhost/seo-urls/seo-urls-mapper.php%3Frequested=$1?%{QUERY_STRING} </IfModule> 

Since I want to complete this during my Xmas holidays, I'm adding a bounty :) Thanks for your help and happy holidays!

added 423 characters in body
Source Link
AlexV
  • 179
  • 1
  • 2
  • 16

I'm trying to do another SEO system with PHP/.htaccess...

I need the following rules to apply:

  1. Must catch all URLs that do not end with an extension (www.foo.com --> catch | www.foo.com/catch-me --> catch | www.foo.com/dont-catch.me --> don't catch).
  2. Must catch all URLs that end with .php* (.php, .php4...) (thwaw are the exceptions to rule #1).
  3. All rules must only apply in some directories and not in their subdirectories (/ and /framework so far).
  4. The htaccess must send the typed URL in a GET value so I can work with it in PHP.

Any mod-rewrite wizard can help me?

Edit:

OK after reading the posts suggested, I came up with this but I think its stuck in a loop... Anyone can help?

<IfModule mod_rewrite.c> RewriteEngine On # 1 RewriteCond %{REQUEST_FILENAME} !\.[^/]+$ [OR] # 2 RewriteCond %{REQUEST_FILENAME} \.php.*$ # 4 RewriteRule ^(.*)$ http://localhost/seo-urls/seo-urls-mapper.php%3Frequested=$1?%{QUERY_STRING} </IfModule> 

I'm trying to do another SEO system with PHP/.htaccess...

I need the following rules to apply:

  1. Must catch all URLs that do not end with an extension (www.foo.com --> catch | www.foo.com/catch-me --> catch | www.foo.com/dont-catch.me --> don't catch).
  2. Must catch all URLs that end with .php* (.php, .php4...) (thwaw are the exceptions to rule #1).
  3. All rules must only apply in some directories and not in their subdirectories (/ and /framework so far).
  4. The htaccess must send the typed URL in a GET value so I can work with it in PHP.

Any mod-rewrite wizard can help me?

I'm trying to do another SEO system with PHP/.htaccess...

I need the following rules to apply:

  1. Must catch all URLs that do not end with an extension (www.foo.com --> catch | www.foo.com/catch-me --> catch | www.foo.com/dont-catch.me --> don't catch).
  2. Must catch all URLs that end with .php* (.php, .php4...) (thwaw are the exceptions to rule #1).
  3. All rules must only apply in some directories and not in their subdirectories (/ and /framework so far).
  4. The htaccess must send the typed URL in a GET value so I can work with it in PHP.

Any mod-rewrite wizard can help me?

Edit:

OK after reading the posts suggested, I came up with this but I think its stuck in a loop... Anyone can help?

<IfModule mod_rewrite.c> RewriteEngine On # 1 RewriteCond %{REQUEST_FILENAME} !\.[^/]+$ [OR] # 2 RewriteCond %{REQUEST_FILENAME} \.php.*$ # 4 RewriteRule ^(.*)$ http://localhost/seo-urls/seo-urls-mapper.php%3Frequested=$1?%{QUERY_STRING} </IfModule> 
edited title
Link
AlexV
  • 179
  • 1
  • 2
  • 16
Loading
added 8 characters in body
Source Link
AlexV
  • 179
  • 1
  • 2
  • 16
Loading
Source Link
AlexV
  • 179
  • 1
  • 2
  • 16
Loading