iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Internet Security Discussion Forum This forum is for the discussion of security related issues. If you find a new Phishing scheme, spyware, virus or malicious site - let us know about it. If any of the above found you... here's where you ask for help.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-30-2008, 06:32 PM
morestar's Avatar
WebProWorld Veteran
WebProWorld MVP
 
Join Date: Jun 2007
Location: Burlington, Ontario (Toronto)
Posts: 941
morestar RepRank 5morestar RepRank 5morestar RepRank 5morestar RepRank 5morestar RepRank 5morestar RepRank 5
Default re-write URLs

mydomain.com/?L=registration.register

i've looked and tried but haven't been able to find a way to use .htaccess to re-write the above URL and like URLs as such

mydomain.com/registration/register

or

mydomain.com/registration/


the same for such URLs like mydomain.com/?L=search.users

currently turkish hackers (as they call themselves) are searching for URLs with the ?L within it. there is a security exploit within the CMS I'm using and frankly this is getting tiresome.

Any and every bit of help is appreciated.

Thank you
__________________
Join free dating sites and meet single people without paying a penny.

Last edited by wige; 01-02-2009 at 11:35 AM. Reason: Removed DN
Reply With Quote
  #2 (permalink)  
Old 12-31-2008, 10:40 AM
wige's Avatar
Moderator
WebProWorld Moderator
 
Join Date: Jun 2006
Location: United States
Posts: 2,648
wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9
Default Re: re-write URLs

RewriteEngine on
RewriteCond %{REQUEST_URI} ^/registration/register$
RewriteRule ^/registration/register$ /?L=registration.register [L]
__________________
The best way to learn anything, is to question everything.
Reply With Quote
  #3 (permalink)  
Old 12-31-2008, 03:54 PM
morestar's Avatar
WebProWorld Veteran
WebProWorld MVP
 
Join Date: Jun 2007
Location: Burlington, Ontario (Toronto)
Posts: 941
morestar RepRank 5morestar RepRank 5morestar RepRank 5morestar RepRank 5morestar RepRank 5morestar RepRank 5
Default Re: re-write URLs

ok well thank you tons wige,
question: with respect to seo, i don't have to 301 my urls now do i ?
__________________
Join free dating sites and meet single people without paying a penny.
Reply With Quote
  #4 (permalink)  
Old 12-31-2008, 04:03 PM
morestar's Avatar
WebProWorld Veteran
WebProWorld MVP
 
Join Date: Jun 2007
Location: Burlington, Ontario (Toronto)
Posts: 941
morestar RepRank 5morestar RepRank 5morestar RepRank 5morestar RepRank 5morestar RepRank 5morestar RepRank 5
Default Re: re-write URLs

hm, that didn't work.
i tried revising it to:

RewriteCond %{REQUEST_URI} ^/?L=registration.register
RewriteRule ^registration/register$1 [L]

that didn't work, for some reason i seem to never be able to get rewrites to work properly.
__________________
Join free dating sites and meet single people without paying a penny.
Reply With Quote
  #5 (permalink)  
Old 01-02-2009, 11:32 AM
wige's Avatar
Moderator
WebProWorld Moderator
 
Join Date: Jun 2006
Location: United States
Posts: 2,648
wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9
Default Re: re-write URLs

Hm, try just this then:

RewriteEngine on
RewriteRule ^/registration/register$ /?L=registration.register [L]

The first parameter is the URL the user is entering, after the domain name, and the second parameter is what that URL gets converted to.
__________________
The best way to learn anything, is to question everything.
Reply With Quote
  #6 (permalink)  
Old 01-02-2009, 12:17 PM
morestar's Avatar
WebProWorld Veteran
WebProWorld MVP
 
Join Date: Jun 2007
Location: Burlington, Ontario (Toronto)
Posts: 941
morestar RepRank 5morestar RepRank 5morestar RepRank 5morestar RepRank 5morestar RepRank 5morestar RepRank 5
Default Re: re-write URLs

no that didn't work either.
i think it may have something to do with the directory the .htaccess file is in.

i even tried to use the full path to my site to no avail.
__________________
Join free dating sites and meet single people without paying a penny.

Last edited by morestar; 01-02-2009 at 12:23 PM.
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Internet Security Discussion Forum

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Google says static URLs are not always better than dynamic URLs... tamecrow Google Discussion Forum 13 09-23-2008 08:02 PM
Can you write our birthday PR Endomorph Services for Sale/Hire 0 12-30-2007 11:39 AM
Write this jazzmatazz2005 Graphics & Design Discussion Forum 2 10-23-2007 11:26 AM
mod re-write razsports Web Programming Discussion Forum 1 03-07-2006 08:31 PM
To Write or Not Write Articles ikgrauke Search Engine Optimization Forum 7 10-25-2005 10:11 PM


All times are GMT -4. The time now is 04:22 AM.



Search Engine Optimization by vBSEO 3.3.0