| | |
.htaccess mod_rewrite issue
Thread Solved
![]() |
•
•
Join Date: Jun 2009
Posts: 2
Reputation:
Solved Threads: 0
Hi guys,
I'm new to this and I would appreciate some of your expertise :-)
I'll let you know what I'm trying to do:
I have a small website with static pages and I just want to remove the extension .php from my files.
After lots of tries I came up with this
RewriteRule ^([A-Za-z0-9]+)/?$ $1.php [L]
That works fine when I type www.example.com/company but when I type www.example.com/company/ (slash at the end) I loose the css and the images.
Besides that when I type www.example.com/company/about or any other page on a folder other that root, I get a 404 not found page.
Could anyone help me solve this?
Thank you in advance :-)
I'm new to this and I would appreciate some of your expertise :-)
I'll let you know what I'm trying to do:
I have a small website with static pages and I just want to remove the extension .php from my files.
After lots of tries I came up with this
RewriteRule ^([A-Za-z0-9]+)/?$ $1.php [L]
That works fine when I type www.example.com/company but when I type www.example.com/company/ (slash at the end) I loose the css and the images.
Besides that when I type www.example.com/company/about or any other page on a folder other that root, I get a 404 not found page.
Could anyone help me solve this?
Thank you in advance :-)
![]() |
Similar Threads
- Mod_Rewrite Problem (Linux Servers and Apache)
- .htaccess mod_rewrite to php login (PHP)
- tweaksurmyspace.com - Myspace Tweaks and Codes (Websites for Sale)
- custom .htaccess file 301 Redirect to non www form Prolems (Search Engine Optimization)
- storing details as html doc using php (PHP)
- Disable access to .htaccess (Linux Servers and Apache)
- Alternative to using .htaccess for mod_rewrite (Linux Servers and Apache)
- .htaccess mod_rewrite problem (Linux Servers and Apache)
Other Threads in the Linux Servers and Apache Forum
- Previous Thread: Debian 5.0 XFCE At A Glance
- Next Thread: Linux: Lean on Me
| Thread Tools | Search this Thread |
.net apache asus bbc bluegene centos cisco citrix cloud cloudcomputing custom datacenters debian dell desktops development distributions distros drivers economy eeepc energy enterprise fedora gadgets gentoo gos government gpl hardware hp hyper-v ibm java jobs kindle knoppix kvm laptop laptops lawsuits licensing limo linustorvalds linux linuxfoundation linuxmagazine magazines microserver microsoft mobile mobilephones netbook netbooks news novell olpc open openmoko openoffice opensolaris opensource opensuse openvz operatingsystems os patents pc pcworld plathome politics print qumranet redhat rhel robot russia sco server servers slackware software solaris source sun supercomputer support tivo torvalds training tv ubuntu umpc unix virtualization vmware windows x86 xandros xen





