Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-12-2012, 01:10 AM   PM User | #1
nx2b
New Coder

 
Join Date: Aug 2012
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
nx2b is an unknown quantity at this point
Seo urls

Hi,

I have this in my .htaccess and works fine but I have a subdomain that uses http://subdir.domain.com and domain.com/subdir/ and keeps trying to add .php so when I remove the .php in the rule it works but my SEO URLS do not as well it would not allow me to add a trailing / for my SEO URLS I looked around but nothing worked.

Quote:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]
nx2b is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:13 PM.


Advertisement
Log in to turn off these ads.