| | |
Making Clean Urls with Modrewrite
![]() |
Hello,
I have been scouring the web trying to find as much information on mod_rewrite as I can, but the solutions I have found do not suit my need.
I have a website that has been up for almost 3 years, and I am having a hard time getting pages indexed to the fullest, by search engines.
Here is the lowdown:
Apache Server
Scripts are perl, and use a flatfile system (no database)
All pages are created dynamically
There are thousands of pages, and new ones created everyday.
The urls are ugly (contain ? and query strings)
Due to the pages being dynamically created, the search engines are only indexing a few. Therefore our customers that have items for sale are not getting their pages to show in search engine results.
I need to use mod_rewrite somehow to rewrite the ugly urls to pretty ones, but I need it to do it automatically for all pages, and new pages that are created all the time.
I have been trying to figure out how, but most of the solutions have faild to work.
Here is an example of a general url you might find:
http://www.somesite.com/cgi-bin/auct...tem=1217563679
Again this is just 1 of thousands of pages dynamically created by the perl script.
I need to find a way to make these urls look something like:
http://www.somesite.com/category/ele...tem/1217563679
Can anyone please help. I feel like I have reached a dead end.
Thank you all in advance.
Shnippy
I have been scouring the web trying to find as much information on mod_rewrite as I can, but the solutions I have found do not suit my need.
I have a website that has been up for almost 3 years, and I am having a hard time getting pages indexed to the fullest, by search engines.
Here is the lowdown:
Apache Server
Scripts are perl, and use a flatfile system (no database)
All pages are created dynamically
There are thousands of pages, and new ones created everyday.
The urls are ugly (contain ? and query strings)
Due to the pages being dynamically created, the search engines are only indexing a few. Therefore our customers that have items for sale are not getting their pages to show in search engine results.
I need to use mod_rewrite somehow to rewrite the ugly urls to pretty ones, but I need it to do it automatically for all pages, and new pages that are created all the time.
I have been trying to figure out how, but most of the solutions have faild to work.
Here is an example of a general url you might find:
http://www.somesite.com/cgi-bin/auct...tem=1217563679
Again this is just 1 of thousands of pages dynamically created by the perl script.
I need to find a way to make these urls look something like:
http://www.somesite.com/category/ele...tem/1217563679
Can anyone please help. I feel like I have reached a dead end.
Thank you all in advance.
Shnippy
In my searches for .htaccess information and security, I found this page:
* .htaccess tips and tricks: redirecting and rewriting
I hope this has what you're looking for.
Cheers,
BigTalk
* .htaccess tips and tricks: redirecting and rewriting
I hope this has what you're looking for.
Cheers,
BigTalk
![]() |
Other Threads in the Linux Servers and Apache Forum
- Previous Thread: Need to setup my laptop as webserver
- Next Thread: URL masking
| Thread Tools | Search this Thread |
.net apache apple asus bbc bluegene centos cisco citrix cloud cloudcomputing 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





